[Catalyst] Re: Handy shotcuts

Aristotle Pagaltzis pagaltzis at gmx.de
Thu Mar 20 16:54:35 GMT 2008


* J. Shirley <jshirley at gmail.com> [2008-03-20 16:30]:
> Something that sets the status to 303 if the request type is a
> post (and HTTP 1.1 as Aristotle posted earlier, although I'm
> not sure what the "best" way to check is.  Assume it is unless
> stated otherwise, or vice-versa?)

That’s pretty simple: Catalyst::Response::redirect should
translate 30[37] to 302 if $c->req->protocol says the HTTP
version used was any less than 1.1.

Regards,
-- 
Aristotle Pagaltzis // <http://plasmasturm.org/>



More information about the Catalyst mailing list