summaryrefslogtreecommitdiff
path: root/src/http/ngx_http_script.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-05-29 17:23:11 +0000
committerJonathan Kolb <jon@b0g.us>2006-05-29 17:23:11 +0000
commitb43e9a7e1d1ec165d2f107159743a0b2ede4d155 (patch)
treeb50a9f10bcce61d3ac5d11e26888456e6c0ea4a2 /src/http/ngx_http_script.c
parent0c56e5ce8e845074329851bcb03738e1dc4226dc (diff)
downloadnginx-b43e9a7e1d1ec165d2f107159743a0b2ede4d155.tar.gz
Changes with nginx 0.3.48 29 May 2006v0.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; bug appeared in 0.3.42. *) Bugfix: the ngx_http_perl_module could not be built, if the perl was built with the threads support; bug appeared in 0.3.46.
Diffstat (limited to 'src/http/ngx_http_script.c')
-rw-r--r--src/http/ngx_http_script.c4
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);
}