summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-01-21 17:42:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-01-21 17:42:28 +0000
commit300de4fb6129475e60b62235f6724566361b2b7d (patch)
treef2604e1b690414ae36dc04803c396076d7fb71c1 /src
parent8885f8736c215cfc4e2c5e92839bcbd7a8ce31c1 (diff)
downloadnginx-300de4fb6129475e60b62235f6724566361b2b7d.tar.gz
nginx-300de4fb6129475e60b62235f6724566361b2b7d.tar.bz2
allow "sendfile" in "if" context
Diffstat (limited to 'src')
-rw-r--r--src/http/ngx_http_core_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 2bff24560..9431c8855 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -275,7 +275,8 @@ static ngx_command_t ngx_http_core_commands[] = {
NULL },
{ ngx_string("sendfile"),
- NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
+ NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
+ |NGX_CONF_TAKE1,
ngx_conf_set_flag_slot,
NGX_HTTP_LOC_CONF_OFFSET,
offsetof(ngx_http_core_loc_conf_t, sendfile),