aboutsummaryrefslogtreecommitdiff
path: root/src/http
diff options
context:
space:
mode:
Diffstat (limited to 'src/http')
-rw-r--r--src/http/ngx_http_request_body.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
index e3094ddb4..fdb49c9fd 100644
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -503,6 +503,7 @@ ngx_http_read_discarded_body(ngx_http_request_t *r)
do {
if (r->headers_in.content_length_n == 0) {
+ r->read_event_handler = ngx_http_block_reading;
return NGX_OK;
}