]> git.kaiwu.me - nginx.git/commitdiff
allow "sendfile" in "if" context
authorIgor Sysoev <igor@sysoev.ru>
Sun, 21 Jan 2007 17:42:28 +0000 (17:42 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 21 Jan 2007 17:42:28 +0000 (17:42 +0000)
src/http/ngx_http_core_module.c

index 2bff2456099f68e46a97c23a8e1654208848362c..9431c8855268fdf9a7737b191e96b8dc81cf6b78 100644 (file)
@@ -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),