[PATCH] Added support for the 308 Permanent Redirect - Perl module

Simon Leblanc contact at leblanc-simon.eu
Tue Apr 11 02:08:59 UTC 2017


# HG changeset patch
# User Simon Leblanc <contact at leblanc-simon.eu>
# Date 1491876406 -7200
#      Tue Apr 11 04:06:46 2017 +0200
# Node ID 44e7f74669453910229f1a48f014d9dbd97e28f1
# Parent  3a823d3fcd1cea201c3839e5b960acbfdb7baf87
Added support for the 308 Permanent Redirect - Perl module

diff -r 3a823d3fcd1c -r 44e7f7466945 src/http/modules/perl/nginx.pm
--- a/src/http/modules/perl/nginx.pm    Tue Apr 11 03:13:46 2017 +0200
+++ b/src/http/modules/perl/nginx.pm    Tue Apr 11 04:06:46 2017 +0200
@@ -24,6 +24,7 @@
     HTTP_SEE_OTHER
     HTTP_NOT_MODIFIED
     HTTP_TEMPORARY_REDIRECT
+    HTTP_PERMANENT_REDIRECT

     HTTP_BAD_REQUEST
     HTTP_UNAUTHORIZED
@@ -72,6 +73,7 @@
 use constant HTTP_SEE_OTHER                 => 303;
 use constant HTTP_NOT_MODIFIED              => 304;
 use constant HTTP_TEMPORARY_REDIRECT        => 307;
+use constant HTTP_PERMANENT_REDIRECT        => 308;

 use constant HTTP_BAD_REQUEST               => 400;
 use constant HTTP_UNAUTHORIZED              => 401;



More information about the nginx-devel mailing list