rack/rack-contrib — pull request #54 by costi (2012-05-02 02:23:48+00:00)
Title: Rewind the stream that holds the post body after reading from it

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'