aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request_body.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-08-14 15:09:38 +0000
committerIgor Sysoev <igor@sysoev.ru>2006-08-14 15:09:38 +0000
commit08e63d46ded2584fea1e7547fa2e958ab978f42f (patch)
tree61903390323a199b0cd22c667f24376f5ecaf4ac /src/http/ngx_http_request_body.c
parent4641f171ccfc7e0936646c65ba13515e82299ce0 (diff)
downloadnginx-release-0.3.58.tar.gz
nginx-release-0.3.58.zip
nginx-0.3.58-RELEASE importrelease-0.3.58
*) Feature: the "error_page" directive supports the variables. *) Change: now the procfs interface instead of sysctl is used on Linux. *) Change: now the "Content-Type" header line is inherited from first response when the "X-Accel-Redirect" was used. *) Bugfix: the "error_page" directive did not redirect the 413 error. *) Bugfix: the trailing "?" did not remove old arguments if no new arguments were added to a rewritten URI. *) Bugfix: nginx could not run on 64-bit FreeBSD 7.0-CURRENT.
Diffstat (limited to 'src/http/ngx_http_request_body.c')
-rw-r--r--src/http/ngx_http_request_body.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
index 460cf399d..fb183c68e 100644
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -405,7 +405,7 @@ ngx_http_discard_body(ngx_http_request_t *r)
ssize_t size;
ngx_event_t *rev;
- if (r != r->main) {
+ if (r != r->main || r->discard_body) {
return NGX_OK;
}