Skip Menu |

This queue is for tickets about the CGI-Application-Plugin-Redirect CPAN distribution.

Report information
The Basics
Id: 23606
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-Redirect

People
Owner: Nobody in particular
Requestors: viorels [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.1
Fixed in: (no value)



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.
This feature has been implemented in version 1.00. Sorry it took so long ... Cheers, Cees