PUT (and friends) bug?
cdr
_ at whats-your.name
Sat Sep 29 08:50:47 EDT 2007
> 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.
agreed. you can handle request body -> @input for any method except the ones that explicitly forbid request bodies (GET, HEAD, OPTIONS/TRACE?..), in one swoop.
the MIME test must stay, of course. otherwise when you add support for other MIMEs using #service it silenty fails trying to parse JSON or whatever as QSVars..
> _______________________________________________
> Camping-list mailing list
> Camping-list at rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
More information about the Camping-list
mailing list