diff options
author | Igor Sysoev <igor@sysoev.ru> | 2006-07-11 13:20:19 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2006-07-11 13:20:19 +0000 |
commit | bb28b6d3a455c20077a7e2d7319c24e484694a72 (patch) | |
tree | 32b623670825037be2ec50a8082176d9173a917a /src/http/ngx_http_request_body.c | |
parent | 09e1981c04aa20858f63ee2eeff588ca3827282b (diff) | |
download | nginx-release-0.3.54.tar.gz nginx-release-0.3.54.zip |
nginx-0.3.54-RELEASE importrelease-0.3.54
*) Feature: nginx now logs the subrequest information to the error log.
*) Feature: the "proxy_next_upstream", "fastcgi_next_upstream", and
"memcached_next_upstream" directives support the "off" parameter.
*) Feature: the "debug_connection" directive supports the CIDR address
form.
*) Bugfix: if a response of proxied server or FastCGI server was
converted from UTF-8 or back, then it may be transferred incomplete.
*) Bugfix: the $upstream_response_time variable had the time of the
first request to a backend only.
*) Bugfix: nginx could not be built on amd64 platform; the bug had
appeared in 0.3.53.
Diffstat (limited to 'src/http/ngx_http_request_body.c')
-rw-r--r-- | src/http/ngx_http_request_body.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index c6fa3fc09..5cc4d5225 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -92,7 +92,7 @@ ngx_http_read_client_request_body(ngx_http_request_t *r, rb->bufs->buf = b; rb->bufs->next = NULL; - if (preread >= r->headers_in.content_length_n) { + if ((off_t) preread >= r->headers_in.content_length_n) { /* the whole request body was pre-read */ @@ -120,7 +120,7 @@ ngx_http_read_client_request_body(ngx_http_request_t *r, rb->rest = r->headers_in.content_length_n - preread; - if (rb->rest <= (size_t) (b->end - b->last)) { + if (rb->rest <= (off_t) (b->end - b->last)) { /* the whole request body may be placed in r->header_in */ @@ -242,7 +242,7 @@ ngx_http_do_read_client_request_body(ngx_http_request_t *r) size = rb->buf->end - rb->buf->last; - if (size > rb->rest) { + if ((off_t) size > rb->rest) { size = (size_t) rb->rest; } |