changeset 1369:6254b90eea4b

block reading for level events
author Igor Sysoev <igor@sysoev.ru>
date Mon, 06 Aug 2007 15:31:00 +0000
parents 202cae9a0c2b
children cc114c85be0f
files src/http/ngx_http_request_body.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_re
 
     do {
         if (r->headers_in.content_length_n == 0) {
+            r->read_event_handler = ngx_http_block_reading;
             return NGX_OK;
         }