summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-04-04 12:07:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-04-04 12:07:13 +0000
commita4ec6869fc47d753d281858f2a9ad5ae07c66509 (patch)
treed766a63b6f79d17af004f8084a27c2e776fc3931 /src
parentf1c8f4471aa6dc3728191672ef13bd9654371730 (diff)
downloadnginx-a4ec6869fc47d753d281858f2a9ad5ae07c66509.tar.gz
nginx-a4ec6869fc47d753d281858f2a9ad5ae07c66509.tar.bz2
fix peer sendfile capability
Diffstat (limited to 'src')
-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 be30b8862..987742e01 100644
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -333,7 +333,6 @@ ngx_http_upstream_init(ngx_http_request_t *r)
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
- u->output.sendfile = c->sendfile;
u->output.pool = r->pool;
u->output.bufs.num = 1;
u->output.bufs.size = clcf->client_body_buffer_size;
@@ -702,6 +701,7 @@ ngx_http_upstream_connect(ngx_http_request_t *r, ngx_http_upstream_t *u)
c->read->handler = ngx_http_upstream_process_header;
c->sendfile &= r->connection->sendfile;
+ u->output.sendfile = c->sendfile;
c->pool = r->pool;
c->read->log = c->write->log = c->log = r->connection->log;