summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-14 20:44:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-14 20:44:09 +0000
commite101338634f4f33bba5dbc989fb322141811a160 (patch)
treec7f9122713aa84a51063aa6d43540f403940953c /src/http/ngx_http_upstream.c
parent5cf4d1af4e12dbcbac9f718884256ac01dec50be (diff)
downloadnginx-e101338634f4f33bba5dbc989fb322141811a160.tar.gz
nginx-e101338634f4f33bba5dbc989fb322141811a160.tar.bz2
upstream sendfile bit was overridden by r->connection->sendfile
Diffstat (limited to '')
-rw-r--r--src/http/ngx_http_upstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c
index 43f3ada35..fa847729c 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -583,7 +583,7 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
c->write->handler = ngx_http_upstream_send_request_handler;
c->read->handler = ngx_http_upstream_process_header;
- c->sendfile = r->connection->sendfile;
+ c->sendfile &= r->connection->sendfile;
c->pool = r->pool;
c->read->log = c->write->log = c->log = r->connection->log;