mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 13:42:55 +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;
|
return NGX_HTTP_INTERNAL_SERVER_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
r->count++;
|
if (ngx_http_read_discarded_request_body(r) != NGX_OK) {
|
||||||
(void) ngx_http_read_discarded_request_body(r);
|
r->count++;
|
||||||
|
}
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user