aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-05-22 15:23:47 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-05-22 15:23:47 +0000
commit6a1cc903bf2db47b7061791b9e878ededcba1aa4 (patch)
tree5e9d78365d85901394f312d8eed6a1811692891b /src/http/ngx_http_core_module.c
parentfa73aac7747c9d0a8575eb2beffcdab50171e006 (diff)
downloadnginx-6a1cc903bf2db47b7061791b9e878ededcba1aa4.tar.gz
nginx-6a1cc903bf2db47b7061791b9e878ededcba1aa4.zip
nginx-0.0.1-2003-05-22-19:23:47 import
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 3ca006d97..e9bda7a78 100644
--- 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: %s" _ lcfp[i]->name.data);
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;
}