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

Already on GitHub? Sign in to your account

Rewind the stream that holds the post body after reading from it #54

Merged
merged 2 commits into from Dec 10, 2012

Conversation

Projects
None yet
2 participants
Contributor

costi commented May 2, 2012

Rewind the stream that holds the post body. Rails also will try to read the env[POST_BODY] it will crap out with: MultiJson::DecodeError (A JSON text must at least contain two octets!) in activesupport (3.2.2) lib/active_support/json/decoding.rb:12:in `decode'

costi added some commits May 2, 2012

If we don't rewind the stream and use Rails and Rack, when Rails will…
… try to read the env[POST_BODY] it will crap out with: MultiJson::DecodeError (A JSON text must at least contain two octets!) in activesupport (3.2.2) lib/active_support/json/decoding.rb:12:in `decode'

rkh added a commit that referenced this pull request Dec 10, 2012

Merge pull request #54 from costi/master
Rewind the stream that holds the post body after reading from it

@rkh rkh merged commit 73975aa into rack:master Dec 10, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment