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.

Attachment: pgpB8tqOB2RkY.pgp
Description: PGP signature

_______________________________________________
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Reply via email to