diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 4e7b30257..2c612311d 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -49,7 +49,7 @@ ngx_http_read_client_request_body(ngx_http_request_t *r, } #endif - if (r->request_body || r->discard_body) { + if (r != r->main || r->request_body || r->discard_body) { post_handler(r); return NGX_OK; }