aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-06-30 14:39:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2010-06-30 14:39:28 +0000
commitffcae99251e5f74d73a9aa56012a924aae0076d5 (patch)
tree71a81743e877499bd07b028e22b00bb639b842dd /src/http/ngx_http_core_module.c
parentbcd78e22e97d4c870b5104d0c540caaa972176ed (diff)
downloadnginx-ffcae99251e5f74d73a9aa56012a924aae0076d5.tar.gz
nginx-ffcae99251e5f74d73a9aa56012a924aae0076d5.zip
Fix processing
error_page 502 504 /zero; location = /zero { return 204; } The bug has been introduced in r3634. The fix also allow to use: error_page 502 504 = /zero; location = /zero { return 200; } This case still does not work: error_page 502 504 /zero; location = /zero { return 200; }
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 984d30617..1654510be 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1748,6 +1748,7 @@ ngx_http_send_response(ngx_http_request_t *r, ngx_uint_t status,
r->headers_out.status = status;
if (status == NGX_HTTP_NO_CONTENT) {
+ r->header_only = 1;
return ngx_http_send_header(r);
}