mirror of
https://github.com/nginx/nginx.git
synced 2025-06-07 09:42:39 +08:00
Cosmetics: replaced NGX_CONF_TAKE1 to NGX_CONF_FLAG for "sendfile"
and "chunked_transfer_encoding" directives, to be in line with all directives taking a boolean argument. Both flags will ensure that a directive takes one argument.
This commit is contained in:
parent
5d4aed0175
commit
3b7ed02583
@ -402,7 +402,7 @@ static ngx_command_t ngx_http_core_commands[] = {
|
|||||||
|
|
||||||
{ ngx_string("sendfile"),
|
{ ngx_string("sendfile"),
|
||||||
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
|
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_HTTP_LIF_CONF
|
||||||
|NGX_CONF_TAKE1,
|
|NGX_CONF_FLAG,
|
||||||
ngx_conf_set_flag_slot,
|
ngx_conf_set_flag_slot,
|
||||||
NGX_HTTP_LOC_CONF_OFFSET,
|
NGX_HTTP_LOC_CONF_OFFSET,
|
||||||
offsetof(ngx_http_core_loc_conf_t, sendfile),
|
offsetof(ngx_http_core_loc_conf_t, sendfile),
|
||||||
@ -639,7 +639,7 @@ static ngx_command_t ngx_http_core_commands[] = {
|
|||||||
NULL },
|
NULL },
|
||||||
|
|
||||||
{ ngx_string("chunked_transfer_encoding"),
|
{ ngx_string("chunked_transfer_encoding"),
|
||||||
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
|
NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG,
|
||||||
ngx_conf_set_flag_slot,
|
ngx_conf_set_flag_slot,
|
||||||
NGX_HTTP_LOC_CONF_OFFSET,
|
NGX_HTTP_LOC_CONF_OFFSET,
|
||||||
offsetof(ngx_http_core_loc_conf_t, chunked_transfer_encoding),
|
offsetof(ngx_http_core_loc_conf_t, chunked_transfer_encoding),
|
||||||
|
Loading…
Reference in New Issue
Block a user