aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-02 09:46:04 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-02 09:46:04 +0000
commit48a3131d8378c7d785c060162a201ea2e5a3b37e (patch)
tree3e2788b6b0390d3fcc9bd0365191a2b59ff4a541
parent3266171fd4691d173f698f1c0c246322a94588e2 (diff)
downloadnginx-48a3131d8378c7d785c060162a201ea2e5a3b37e.tar.gz
nginx-48a3131d8378c7d785c060162a201ea2e5a3b37e.zip
update r3167: do not set r->discard_body if the body has been just discarded
-rw-r--r--src/http/ngx_http_request_body.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
index bc2a14e0d..83e2d015b 100644
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -469,8 +469,6 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
}
}
- r->discard_body = 1;
-
r->read_event_handler = ngx_http_read_discarded_request_body_handler;
if (ngx_handle_read_event(rev, 0) != NGX_OK) {
@@ -479,6 +477,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
if (ngx_http_read_discarded_request_body(r) != NGX_OK) {
r->count++;
+ r->discard_body = 1;
}
return NGX_OK;