mirror of
https://github.com/nginx/nginx.git
synced 2026-10-24 13:04:26 +00:00
allow "sendfile" in "if" context
This commit is contained in:
parent
8885f8736c
commit
300de4fb61
1 changed files with 2 additions and 1 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue