aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorSimon Leblanc <contact@leblanc-simon.eu>2017-04-11 03:13:46 +0200
committerSimon Leblanc <contact@leblanc-simon.eu>2017-04-11 03:13:46 +0200
commit8ee2de5e9c930273c99a03452e7336f8a393ec42 (patch)
treed26de384b0f3a2d6533d9823cb5087d230954287 /src/http/ngx_http_core_module.c
parenta965e1d76642095f3f4e5f43d13a8b0379296e43 (diff)
downloadnginx-8ee2de5e9c930273c99a03452e7336f8a393ec42.tar.gz
nginx-8ee2de5e9c930273c99a03452e7336f8a393ec42.zip
Added support for the "308 Permanent Redirect" (ticket #877).
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 38df6ac1f..f357ee4b6 100644
--- 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_t *r, ngx_uint_t status,
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);