1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller
Artem Rashev b388ca41d8 Fixed CONTENT_LENGTH header in ActionController::TestRequest
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.
2016-11-15 12:50:38 +03:00
..
api Re-add ActionController::ApiRendering 2016-01-20 19:16:23 -05:00
metal Merge pull request #26905 from bogdanvlviv/docs 2016-11-13 14:09:30 +00:00
railties
api.rb applies new string literal convention in actionpack/lib 2016-08-06 18:51:43 +02:00
base.rb Include the content of the flash in the auto-generated etag (#26250) 2016-08-22 13:34:35 -07:00
caching.rb Move private methods to the private visibility 2016-02-24 00:08:01 -03:00
form_builder.rb remove extra = in form builder example [ci skip] 2015-04-15 23:06:01 +09:00
log_subscriber.rb Show unpermitted parameters as symbols in logs (so they could be copy-pasted to the code) 2016-08-10 00:37:27 +03:00
metal.rb Remove deprecated support to passing strings to the middleware stack 2016-10-10 01:35:59 -03:00
railtie.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
renderer.rb Add more rubocop rules about whitespaces 2016-10-29 01:17:49 -02:00
template_assertions.rb Remove assigns and assert_template. 2015-05-30 14:13:57 +08:00
test_case.rb Fixed CONTENT_LENGTH header in ActionController::TestRequest 2016-11-15 12:50:38 +03:00