Thanks!




________________________________
 From: Paul Nikitochkin <notifications@github.com>
To: rails/rails <rails@noreply.github.com> 
Cc: Adrien Lamothe <alamoz@yahoo.com> 
Sent: Sunday, July 7, 2013 11:09 PM
Subject: Re: [rails] Fix request raw_post_body.rewind in actionpack-4.0.0/lib/action_dispatch/http/request.rb (#11356)
 


In actionpack/lib/action_dispatch/http/request.rb:
>          raw_post_body.rewind if raw_post_body.respond_to?(:rewind)
> +        @env['RAW_POST_DATA'] = raw_post_body.read(@env['CONTENT_LENGTH'].to_i) 
After that, body.pos will be equal @env['CONTENT_LENGTH'].to_i, but needed to be again 0
—
Reply to this email directly or view it on GitHub.