Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rewinding in ActionDispatch::Request#raw_post #8490

Merged
merged 1 commit into from Dec 11, 2012
Merged

Fix rewinding in ActionDispatch::Request#raw_post #8490

merged 1 commit into from Dec 11, 2012

Commits on Dec 11, 2012

  1. Fix rewinding in ActionDispatch::Request#raw_post

    If env['RAW_POST_DATA'] is nil, #raw_post will attempt to set it to
    the result of #body (which will return env['rack.input'] if
    env['RAW_POST_DATA'] is nil). #raw_post will then attempt to rewind
    the result of another call to #body. Since env['RAW_POST_DATA'] has
    already been set, the result of #body is not env['rack.input'] anymore.
    This causes env['rack.input'] to never be rewound.
    venables committed Dec 11, 2012
    Copy the full SHA
    991601f View commit details
    Browse the repository at this point in the history