> 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@rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list _______________________________________________ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list