commit | 8fd830adc0a3bcdcf471237e2c4445d15e64face | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Oct 02 10:22:51 2006 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Oct 02 10:22:51 2006 +0000 |
tree | 45625134d5a27490442c031ba404d49f32c069be | |
parent | 8c0dec813f2ce4b29c94452dfda16908a3927800 [diff] [blame] |
set "Content-Length: 0" for errors handled by "return 204"
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 3a9e2a8..e8bce19 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c
@@ -841,6 +841,7 @@ 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);