[FastCGI] HTTP POST not possible
Reported by Martin Grund | March 23rd, 2008 @ 08:27 PM
When using the FastCGI setup HTTP Post requests are not possible since the following exception occurs
undefined method `rewind' for # - (NoMethodError)
The reason is, that the required FCGI object does not provide a method called "rewind" to reset the communication channel.
Changing the source to
@body.rewind if @body.respond_to?(:rewind)
res = @body.read
@body.rewind if @body.respond_to?(:rewind)
in merb-core/dispatch/request.rb:raw_post fixes the problem, but still stays a little unclean.
Comments and changes to this ticket
-
Ezra Zygmuntowicz March 24th, 2008 @ 12:43 AM
- → State changed from new to resolved
- → Assigned user changed from to Ezra Zygmuntowicz
I've fixed this for now. I'm not sure why i was rewinding twice but it's not needed. I've memoized it and only rewind if the body responsds to rewind
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
