PUT (and friends) bug?
Brendan Taylor
whateley at gmail.com
Fri Sep 28 21:23:57 EDT 2007
On Fri, Sep 28, 2007 at 03:22:23PM -0400, Nathaniel Talbott wrote:
> As far as I can tell, sending an actual HTTP PUT request to a Camping
> app will never parse the params out of the request body - or am I
> going nuts? This code seems to say only POST's will parse the request
> body:
>
> elsif @method == "post" and \
> e.CONTENT_TYPE == "application/x-www-form-urlencoded"
> q.u(C.qsp(@in.read))
> end
The @method == "post" test is a vestige of when Camping just parsed
anything that was POSTed. I didn't really think about it when I
submitted the patch to test the Content-Type.
AFAIK there's no reason not to remove the method test altogether; use
those bytes for something more useful.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/camping-list/attachments/20070928/d90429e5/attachment.bin
More information about the Camping-list
mailing list