comparison 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
comparison
equal deleted inserted replaced
1394:00ba627f7919 1397:6c25a49e548a
581 c->data = r; 581 c->data = r;
582 582
583 c->write->handler = ngx_http_upstream_send_request_handler; 583 c->write->handler = ngx_http_upstream_send_request_handler;
584 c->read->handler = ngx_http_upstream_process_header; 584 c->read->handler = ngx_http_upstream_process_header;
585 585
586 c->sendfile = r->connection->sendfile; 586 c->sendfile &= r->connection->sendfile;
587 587
588 c->pool = r->pool; 588 c->pool = r->pool;
589 c->read->log = c->write->log = c->log = r->connection->log; 589 c->read->log = c->write->log = c->log = r->connection->log;
590 590
591 /* init or reinit the ngx_output_chain() and ngx_chain_writer() contexts */ 591 /* init or reinit the ngx_output_chain() and ngx_chain_writer() contexts */