From 8fd830adc0a3bcdcf471237e2c4445d15e64face Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 2 Oct 2006 10:22:51 +0000 Subject: set "Content-Length: 0" for errors handled by "return 204" --- src/http/ngx_http_script.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/http/ngx_http_script.c') diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 3a9e2a85b..e8bce1911 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -841,6 +841,7 @@ ngx_http_script_return_code(ngx_http_script_engine_t *e) if (code->status == NGX_HTTP_NO_CONTENT) { e->request->header_only = 1; + e->request->zero_body = 1; } e->ip += sizeof(ngx_http_script_return_code_t) - sizeof(uintptr_t); -- cgit v1.2.3