Mercurial > hg > nginx
comparison 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 |
comparison
equal
deleted
inserted
replaced
729:52d1379de54e | 730:1be87cdd010f |
---|---|
839 | 839 |
840 e->status = code->status; | 840 e->status = code->status; |
841 | 841 |
842 if (code->status == NGX_HTTP_NO_CONTENT) { | 842 if (code->status == NGX_HTTP_NO_CONTENT) { |
843 e->request->header_only = 1; | 843 e->request->header_only = 1; |
844 e->request->zero_body = 1; | |
844 } | 845 } |
845 | 846 |
846 e->ip += sizeof(ngx_http_script_return_code_t) - sizeof(uintptr_t); | 847 e->ip += sizeof(ngx_http_script_return_code_t) - sizeof(uintptr_t); |
847 } | 848 } |
848 | 849 |