summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 9cbec1fed..04bfc72ca 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -4366,6 +4366,8 @@ ngx_http_upstream_finalize_request(ngx_http_request_t *r,
u->buffer.last = u->buffer.pos;
}
+ r->read_event_handler = ngx_http_block_reading;
+
if (rc == NGX_DECLINED) {
return;
}