Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 6977:be5cfa918bfc
Added support for the "308 Permanent Redirect" (ticket #877).
author | Simon Leblanc <contact@leblanc-simon.eu> |
---|---|
date | Tue, 11 Apr 2017 03:13:46 +0200 |
parents | 99934aade555 |
children | 0cdee26605f3 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -1894,7 +1894,8 @@ ngx_http_send_response(ngx_http_request_ if (status == NGX_HTTP_MOVED_PERMANENTLY || status == NGX_HTTP_MOVED_TEMPORARILY || status == NGX_HTTP_SEE_OTHER - || status == NGX_HTTP_TEMPORARY_REDIRECT) + || status == NGX_HTTP_TEMPORARY_REDIRECT + || status == NGX_HTTP_PERMANENT_REDIRECT) { ngx_http_clear_location(r);