mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
fix r3078: do not increase request counter if body has been just discarded
This commit is contained in:
parent
29e7d8cc73
commit
63bfeb9bd0
@ -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…
Reference in New Issue
Block a user