mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
b388ca41d8
CONENT_LENGTH setted by string length, which is equal to number of characters in string but StringIO.length is byte sequence and when payload contains non-ASCII characters, stream's length will be different. That's why real byte length should be used for CONTENT_LENGTH header. Add unit test for CONTENT_LENGTH header fix It just passes non-ascii symbols as parameters and verifies that "CONTENT_LENGTH" header has content bytes count as value. |
||
---|---|---|
.. | ||
api | ||
metal | ||
railties | ||
api.rb | ||
base.rb | ||
caching.rb | ||
form_builder.rb | ||
log_subscriber.rb | ||
metal.rb | ||
railtie.rb | ||
renderer.rb | ||
template_assertions.rb | ||
test_case.rb |