public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
fix Request#raw_post to respect bodies with no rewind method
ezmobius (author)
Sun Mar 23 15:40:36 -0700 2008
commit  22436fe4056bf4ab7e293d0f1a66cff54538f442
tree    0b59a839a84152a0452998df8de20091f19352e0
parent  312181aade867323834c5031b7e9707f931e9ded
...
162
163
164
165
166
167
168
 
 
169
170
171
...
162
163
164
 
 
 
 
165
166
167
168
169
0
@@ -162,10 +162,8 @@
0
     # ==== Returns
0
     # String:: The raw post.
0
     def raw_post
0
- @body.rewind
0
- res = @body.read
0
- @body.rewind
0
- res
0
+ @body.rewind if @body.respond_to?(:rewind)
0
+ @body.read
0
     end
0
     
0
     # ==== Returns

Comments

    No one has commented yet.