]> git.kaiwu.me - nginx.git/commitdiff
block reading for level events
authorIgor Sysoev <igor@sysoev.ru>
Mon, 6 Aug 2007 15:31:00 +0000 (15:31 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 6 Aug 2007 15:31:00 +0000 (15:31 +0000)
src/http/ngx_http_request_body.c

index e3094ddb4128d300e42ab23b0093b914d8ccaad4..fdb49c9fdd164780bbd03bf586572bca889d9481 100644 (file)
@@ -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;
         }