mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
fix r3078: do not increase request counter if body has been just discarded
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ngx_http_read_discarded_request_body(r) != NGX_OK) {
|
||||||
r->count++;
|
r->count++;
|
||||||
(void) ngx_http_read_discarded_request_body(r);
|
}
|
||||||
|
|
||||||
return NGX_OK;
|
return NGX_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user