diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2009-10-19 16:12:13 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-19 16:12:13 +0000 |
| commit | 801a35df3c43b4ceb88e9ad5aa69a4366d7b4051 (patch) | |
| tree | 3f3b61c92a35081be83c11cdf69ebc9213e0b0e5 /src/http/ngx_http_request_body.c | |
| parent | 7060e670f40ec36836400090529bd82c00461258 (diff) | |
| download | nginx-801a35df3c43b4ceb88e9ad5aa69a4366d7b4051.tar.gz nginx-801a35df3c43b4ceb88e9ad5aa69a4366d7b4051.tar.bz2 | |
restore discard body handler after ngx_http_set_writer() set it to
ngx_http_test_reading(), the bug was introduced in r3050
Diffstat (limited to 'src/http/ngx_http_request_body.c')
| -rw-r--r-- | src/http/ngx_http_request_body.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 62c962db7..be311a612 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -13,7 +13,6 @@ static void ngx_http_read_client_request_body_handler(ngx_http_request_t *r); static ngx_int_t ngx_http_do_read_client_request_body(ngx_http_request_t *r); static ngx_int_t ngx_http_write_request_body(ngx_http_request_t *r, ngx_chain_t *body); -static void ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r); static ngx_int_t ngx_http_read_discarded_request_body(ngx_http_request_t *r); static ngx_int_t ngx_http_test_expect(ngx_http_request_t *r); @@ -470,7 +469,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r) } } - r->read_event_handler = ngx_http_read_discarded_request_body_handler; + r->read_event_handler = ngx_http_discarded_request_body_handler; if (ngx_handle_read_event(rev, 0) != NGX_OK) { return NGX_HTTP_INTERNAL_SERVER_ERROR; @@ -488,8 +487,8 @@ ngx_http_discard_request_body(ngx_http_request_t *r) } -static void -ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r) +void +ngx_http_discarded_request_body_handler(ngx_http_request_t *r) { ngx_int_t rc; ngx_msec_t timer; |
