diff src/http/ngx_http_upstream.c @ 1397:6c25a49e548a

upstream sendfile bit was overridden by r->connection->sendfile
author Igor Sysoev <igor@sysoev.ru>
date Tue, 14 Aug 2007 20:44:09 +0000
parents 0be898896d1a
children 491e5059ea19
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -583,7 +583,7 @@ ngx_http_upstream_connect(ngx_http_reque
     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;