commit | 63bfeb9bd0c75f54084ff37e2896234c7a18c22d | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Sat Sep 26 13:24:15 2009 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Sat Sep 26 13:24:15 2009 +0000 |
tree | 6bfe3f8af731c5d6535eb2e32c660c28bd478144 | |
parent | 29e7d8cc732196589fad7a0c38100cb61a4ac5c3 [diff] |
fix r3078: do not increase request counter if body has been just discarded
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index dc593f1..bc2a14e 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c
@@ -477,8 +477,9 @@ return NGX_HTTP_INTERNAL_SERVER_ERROR; } - r->count++; - (void) ngx_http_read_discarded_request_body(r); + if (ngx_http_read_discarded_request_body(r) != NGX_OK) { + r->count++; + } return NGX_OK; }