mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
fix r3078: do not increase request counter if body has been just discarded
This commit is contained in:
parent
29e7d8cc73
commit
63bfeb9bd0
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue