diff src/http/ngx_http_script.c @ 730:1be87cdd010f

set "Content-Length: 0" for errors handled by "return 204"
author Igor Sysoev <igor@sysoev.ru>
date Mon, 02 Oct 2006 10:22:51 +0000
parents df95dcff753a
children eb5cf273e5d2
line wrap: on
line diff
--- 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_scr
 
     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);