[Catalyst-dev] Re: RFC: DWIM redirects

A. Pagaltzis pagaltzis at gmx.de
Tue Jan 9 17:40:38 GMT 2007


* John Napiorkowski <jjn1056 at yahoo.com> [2007-01-09 17:40]:
> To bad changing $c->req->redirect to something more clear isn't
> like to be possible at this point,

Nor should you want that. Methods on Catalyst::Response should
modify the response, not affect control flow.

> 2) I can't read the proposed source for some reason, I assume
> that $c->redirect would accept some parameters for setting the
> HTTP Status code? I tend to be a stickler for distinguishing
> between 302 Found and 303 See Other redirect types. What are we
> proposing to be the default?

The patch does the same as the code that’s already there: set 302
unless you specify a 3xx status yourself.

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



More information about the Catalyst-dev mailing list