fix segfault when a request body fits in r->header_in and

the body will be written to file
This commit is contained in:
Igor Sysoev 2007-01-19 16:13:15 +00:00
parent 8ff1e3251c
commit 36588962aa

View File

@ -163,6 +163,8 @@ ngx_http_read_client_request_body(ngx_http_request_t *r,
/* the whole request body may be placed in r->header_in */
rb->to_write = rb->bufs;
r->read_event_handler = ngx_http_read_client_request_body_handler;
return ngx_http_do_read_client_request_body(r);