comparison src/http/ngx_http_core_module.c @ 1070:b54a1e283d6d

allow "sendfile" in "if" context
author Igor Sysoev <igor@sysoev.ru>
date Sun, 21 Jan 2007 17:42:28 +0000
parents af57bfd77b7f
children d82560e9d147
comparison
equal deleted inserted replaced
1069:e6fc18f1a032 1070:b54a1e283d6d
273 NGX_HTTP_LOC_CONF_OFFSET, 273 NGX_HTTP_LOC_CONF_OFFSET,
274 offsetof(ngx_http_core_loc_conf_t, client_body_in_file_only), 274 offsetof(ngx_http_core_loc_conf_t, client_body_in_file_only),
275 NULL }, 275 NULL },
276 276
277 { ngx_string("sendfile"), 277 { ngx_string("sendfile"),
278 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, 278 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
279 |NGX_CONF_TAKE1,
279 ngx_conf_set_flag_slot, 280 ngx_conf_set_flag_slot,
280 NGX_HTTP_LOC_CONF_OFFSET, 281 NGX_HTTP_LOC_CONF_OFFSET,
281 offsetof(ngx_http_core_loc_conf_t, sendfile), 282 offsetof(ngx_http_core_loc_conf_t, sendfile),
282 NULL }, 283 NULL },
283 284