diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-08-06 15:37:22 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-08-06 15:37:22 +0000 |
| commit | 832571f0fc6c94471d55f3a73e5fa154d0bd2b1c (patch) | |
| tree | 8ec68f3336b0013d6dfba77660100c215d282a14 /src/http/ngx_http_request_body.c | |
| parent | ce6bcc0795d50874a44619ce23cc9ddd4295e88d (diff) | |
| download | nginx-832571f0fc6c94471d55f3a73e5fa154d0bd2b1c.tar.gz nginx-832571f0fc6c94471d55f3a73e5fa154d0bd2b1c.tar.bz2 | |
rename ngx_http_discard_body() to ngx_http_discard_request_body()
Diffstat (limited to 'src/http/ngx_http_request_body.c')
| -rw-r--r-- | src/http/ngx_http_request_body.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index fdb49c9fd..b9400be8d 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -14,8 +14,8 @@ 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_body_handler(ngx_http_request_t *r); -static ngx_int_t ngx_http_read_discarded_body(ngx_http_request_t *r); +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); /* @@ -425,7 +425,7 @@ ngx_http_write_request_body(ngx_http_request_t *r, ngx_chain_t *body) ngx_int_t -ngx_http_discard_body(ngx_http_request_t *r) +ngx_http_discard_request_body(ngx_http_request_t *r) { ssize_t size; ngx_event_t *rev; @@ -461,22 +461,22 @@ ngx_http_discard_body(ngx_http_request_t *r) } } - r->read_event_handler = ngx_http_read_discarded_body_handler; + r->read_event_handler = ngx_http_read_discarded_request_body_handler; if (ngx_handle_read_event(rev, 0) == NGX_ERROR) { return NGX_HTTP_INTERNAL_SERVER_ERROR; } - return ngx_http_read_discarded_body(r); + return ngx_http_read_discarded_request_body(r); } static void -ngx_http_read_discarded_body_handler(ngx_http_request_t *r) +ngx_http_read_discarded_request_body_handler(ngx_http_request_t *r) { ngx_int_t rc; - rc = ngx_http_read_discarded_body(r); + rc = ngx_http_read_discarded_request_body(r); if (rc == NGX_AGAIN) { if (ngx_handle_read_event(r->connection->read, 0) == NGX_ERROR) { @@ -492,7 +492,7 @@ ngx_http_read_discarded_body_handler(ngx_http_request_t *r) static ngx_int_t -ngx_http_read_discarded_body(ngx_http_request_t *r) +ngx_http_read_discarded_request_body(ngx_http_request_t *r) { size_t size; ssize_t n; |
