Subject: | Wish: Redirect status as argument |
The redirect code is not configurable in version 0.1
301 might be needed for permanents (so that Google likes it), 303 for
post redirects and so on.
I suggest passing it as a second argument ... something like this :
sub redirect {
my ( $self, $url, $status ) = @_;
$status ||= $self->query()->request_method() eq 'POST' ? 303 : 302;
$self->header_type('redirect');
$self->header_props(-url => $url, -status=>$status);
...
}
Thank you.