[PATCH] Added support for the 308 Permanent Redirect

Maxim Dounin mdounin at mdounin.ru
Fri Apr 14 16:59:43 UTC 2017


Hello!

On Tue, Apr 11, 2017 at 03:48:12AM +0200, Simon Leblanc wrote:

> # HG changeset patch
> # User Simon Leblanc <contact at leblanc-simon.eu>
> # Date 1491873226 -7200
> #      Tue Apr 11 03:13:46 2017 +0200
> # Node ID 3a823d3fcd1cea201c3839e5b960acbfdb7baf87
> # Parent  29ba1d6a2da9320e68ef2b7a2516c4c424672ea8
> Added support for the 308 Permanent Redirect
> 
> diff -r 29ba1d6a2da9 -r 3a823d3fcd1c src/http/modules/ngx_http_headers_filter_module.c
> --- a/src/http/modules/ngx_http_headers_filter_module.c	Tue Apr 04 18:01:57 2017 +0300
> +++ b/src/http/modules/ngx_http_headers_filter_module.c	Tue Apr 11 03:13:46 2017 +0200
> @@ -173,6 +173,7 @@
>      case NGX_HTTP_SEE_OTHER:
>      case NGX_HTTP_NOT_MODIFIED:
>      case NGX_HTTP_TEMPORARY_REDIRECT:
> +    case NGX_HTTP_PERMANENT_REDIRECT:
>          safe_status = 1;
>          break;

[...]

Thanks for the patch, I've merged it with the patch for the perl 
module and committed.

http://hg.nginx.org/nginx/rev/be5cfa918bfc

-- 
Maxim Dounin
http://nginx.org/


More information about the nginx-devel mailing list