mirror of
https://github.com/nginx/nginx.git
synced 2026-08-04 14:58:20 +00:00
update r3167: do not set r->discard_body if the body has been just discarded
This commit is contained in:
parent
3266171fd4
commit
48a3131d83
1 changed files with 1 additions and 2 deletions
|
|
@ -469,8 +469,6 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
|||
}
|
||||
}
|
||||
|
||||
r->discard_body = 1;
|
||||
|
||||
r->read_event_handler = ngx_http_read_discarded_request_body_handler;
|
||||
|
||||
if (ngx_handle_read_event(rev, 0) != NGX_OK) {
|
||||
|
|
@ -479,6 +477,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
|||
|
||||
if (ngx_http_read_discarded_request_body(r) != NGX_OK) {
|
||||
r->count++;
|
||||
r->discard_body = 1;
|
||||
}
|
||||
|
||||
return NGX_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue