diff src/http/ngx_http_request.c @ 3000:66ef86affbb8

fix segfault if 400 or 414 errors are handled intricately
author Igor Sysoev <igor@sysoev.ru>
date Fri, 24 Jul 2009 19:20:29 +0000
parents f33c48457d0c
children 67254117b774
line wrap: on
line diff
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -384,6 +384,7 @@ ngx_http_init_request(ngx_event_t *rev)
     r->loc_conf = cscf->ctx->loc_conf;
 
     rev->handler = ngx_http_process_request_line;
+    r->read_event_handler = ngx_http_block_reading;
 
 #if (NGX_HTTP_SSL)