fix segfault when a request body fits in r->header_in and
the body will be written to file
Igor Sysoev
15 years ago
161 | 161 |
if (rb->rest <= (off_t) (b->end - b->last)) {
|
162 | 162 |
|
163 | 163 |
/* the whole request body may be placed in r->header_in */
|
|
164 |
|
|
165 |
rb->to_write = rb->bufs;
|
164 | 166 |
|
165 | 167 |
r->read_event_handler = ngx_http_read_client_request_body_handler;
|
166 | 168 |
|