Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 94:8220378432a8
nginx-0.0.1-2003-05-22-19:23:47 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 22 May 2003 15:23:47 +0000 |
parents | 738fe44c70d5 |
children | b48066122884 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -319,7 +319,7 @@ ngx_log_debug(r->connection->log, "trans lcf = (ngx_http_core_loc_conf_t *) ngx_http_get_module_loc_conf(r, ngx_http_core_module_ctx); - if (lcf->sendfile == 0) { + if ((ngx_io.flags & NGX_IO_SENDFILE) == 0 || lcf->sendfile == 0) { r->filter = NGX_HTTP_FILTER_NEED_IN_MEMORY; }