fix r3078: do not increase request counter if body has been just discarded

This commit is contained in:
Igor Sysoev 2009-09-26 13:24:15 +00:00
parent 29e7d8cc73
commit 63bfeb9bd0

View File

@ -477,8 +477,9 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
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;
}