diff options
author | Eugene Kenny <elkenny@gmail.com> | 2018-05-01 01:24:32 +0100 |
---|---|---|
committer | Eugene Kenny <elkenny@gmail.com> | 2018-05-01 01:24:32 +0100 |
commit | f9e14b02c460a1963b350fb5e0e10c0e71ee175c (patch) | |
tree | eec10e9821b317de47cf686127a589ccb11a801c /railties/lib/rails/test_unit | |
parent | ee6a431bb9071151d9d546856a6451b861907202 (diff) | |
download | rails-f9e14b02c460a1963b350fb5e0e10c0e71ee175c.tar.gz rails-f9e14b02c460a1963b350fb5e0e10c0e71ee175c.tar.bz2 rails-f9e14b02c460a1963b350fb5e0e10c0e71ee175c.zip |
Reset CONTENT_LENGTH between test requests
If a POST request is followed by a GET request in a controller test, the
`rack.input` and `RAW_POST_DATA` headers from the first request will be
reset but the `CONTENT_LENGTH` header will leak, leading the request
object in the second request to incorrectly believe it has a body.
Diffstat (limited to 'railties/lib/rails/test_unit')
0 files changed, 0 insertions, 0 deletions