diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-05-29 17:28:12 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-05-29 17:28:12 +0000 |
commit | afd7ec53572d817d155be5b8a5b6aab7ebbdcb5a (patch) | |
tree | 5543319d12f175a80fbdc6b10e72788d91a0a623 /src/http/ngx_http_script.c | |
parent | a33fd634b0606f068ad39edd8374c035d353c590 (diff) | |
download | nginx-release-0.3.48.tar.gz nginx-release-0.3.48.zip |
nginx-0.3.48-RELEASE importrelease-0.3.48
*) Change: now the ngx_http_charset_module works for subrequests, if
the response has no "Content-Type" header line.
*) Bugfix: if the "proxy_pass" directive has no URI part, then the
"proxy_redirect default" directive add the unnecessary slash in
start of the rewritten redirect.
*) Bugfix: the internal redirect always transform client's HTTP method
to GET, now the transformation is made for the "X-Accel-Redirect"
redirects only and if the method is not HEAD; the bug had appeared
in 0.3.42.
*) Bugfix: the ngx_http_perl_module could not be built, if the perl was
built with the threads support; the bug had appeared in 0.3.46.
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r-- | src/http/ngx_http_script.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/http/ngx_http_script.c b/src/http/ngx_http_script.c index 9826ecea5..94793d7e7 100644 --- a/src/http/ngx_http_script.c +++ b/src/http/ngx_http_script.c @@ -833,6 +833,10 @@ ngx_http_script_return_code(ngx_http_script_engine_t *e) e->status = code->status; + if (code->status == NGX_HTTP_NO_CONTENT) { + e->request->header_only = 1; + } + e->ip += sizeof(ngx_http_script_return_code_t) - sizeof(uintptr_t); } |