Okay, I'll remove the test then.
--
Cheers,
zimbatm
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list
> 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.
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
On Fri, 2007-09-28 at 22:50 +0200, Jonas Pfenniger wrote:
> 2007/9/28, Nathaniel Talbott <[EMAIL PROTECTED]>:
> > 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?
>
> No you aren't at all. Ac
2007/9/28, Nathaniel Talbott <[EMAIL PROTECTED]>:
> 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?
No you aren't at all. Actually, Camping is only a toy to quickly hack
small apps together. I a
On 9/28/07, Nathaniel Talbott <[EMAIL PROTECTED]> wrote:
> It seems to me that most restful frameworks are assuming that you can
> PUT the same as you can POST, i.e. that other than the verb (and what
> you might do with it) the two will be treated the same.
This is a horrible Rails-ism, in my opi
On 9/28/07, Nathaniel Talbott <[EMAIL PROTECTED]> wrote:
> Of course, there's also the fact that while browsers don't *currently*
> support form verbs besides POST, I'm hopeful that that may change
> eventually.
Even if browsers do start supporting PUT requests, I'd be somewhat
shocked if they do
On 9/28/07, Lennon Day-Reynolds <[EMAIL PROTECTED]> wrote:
> I honestly wouldn't expect PUT (or any other HTTP actions other than
> GET, POST, and HEAD) to pass the input through a normal
> form-decoding step -- most of the time, the "payload" for a PUT is
> going to be XML, JSON, or even raw bina
On 9/28/07, Nathaniel Talbott <[EMAIL PROTECTED]> 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 ==
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-urlenc
10 matches
Mail list logo