diff options
| author | Maxim Dounin <mdounin@mdounin.ru> | 2013-07-25 14:58:11 +0400 |
|---|---|---|
| committer | Maxim Dounin <mdounin@mdounin.ru> | 2013-07-25 14:58:11 +0400 |
| commit | 416b922bd2c285551d195c1f33a3736775ea45e9 (patch) | |
| tree | 6191493eaf8295560ff25ad424e776139b6c9d26 /src/http/ngx_http_upstream.c | |
| parent | 187f3948ed4de1e8886fd50cbe937816c25dede6 (diff) | |
| download | nginx-416b922bd2c285551d195c1f33a3736775ea45e9.tar.gz nginx-416b922bd2c285551d195c1f33a3736775ea45e9.tar.bz2 | |
Upstream: u->length now defaults to -1 (API change).
That is, by default we assume that response end is signalled by
a connection close. This seems to be better default, and in line
with u->pipe->length behaviour.
Memcached module was modified accordingly.
Diffstat (limited to '')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index 08c4e5781..8781fdca4 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -1994,7 +1994,7 @@ ngx_http_upstream_process_headers(ngx_http_request_t *r, ngx_http_upstream_t *u) r->headers_out.content_length_n = u->headers_in.content_length_n; - u->length = u->headers_in.content_length_n; + u->length = -1; return NGX_OK; } |
