From: Marcus Ramberg Date: Thu, 2 Mar 2006 15:33:05 +0000 (+0000) Subject: change to use a 301 for redirects. X-Git-Tag: 5.7099_04~683 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=70a7eeae0684bf7f55ff59cca58f79c108ce03d5 change to use a 301 for redirects. --- diff --git a/Changes b/Changes index e60b2ee..4c0e4a9 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ This file documents the revision history for Perl extension Catalyst. 5.66 + - Change redirect to use a 301, not a 302 - Added Root controller concept - Updated ConfigLoader plugin to version 0.04 diff --git a/lib/Catalyst/Response.pm b/lib/Catalyst/Response.pm index 8aa9b22..8d3d880 100644 --- a/lib/Catalyst/Response.pm +++ b/lib/Catalyst/Response.pm @@ -110,7 +110,7 @@ sub redirect { if (@_) { my $location = shift; - my $status = shift || 302; + my $status = shift || 301; $self->location($location); $self->status($status);