diff options
author | Ruslan Ermilov <ru@nginx.com> | 2011-09-19 12:41:13 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@nginx.com> | 2011-09-19 12:41:13 +0000 |
commit | 3b7ed02583439f6ed4cc9665f4caf569eec31cf1 (patch) | |
tree | 6ed47dbfc95c4d7b32b1afca0c650e97382c502d | |
parent | 5d4aed0175e4fde30ad74d8e28ca67ca3f2f8299 (diff) | |
download | nginx-3b7ed02583439f6ed4cc9665f4caf569eec31cf1.tar.gz nginx-3b7ed02583439f6ed4cc9665f4caf569eec31cf1.zip |
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.
-rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index bdf4c6bee..0fb50124d 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -402,7 +402,7 @@ static ngx_command_t ngx_http_core_commands[] = { { ngx_string("sendfile"), 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_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_core_loc_conf_t, sendfile), @@ -639,7 +639,7 @@ static ngx_command_t ngx_http_core_commands[] = { NULL }, { 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_HTTP_LOC_CONF_OFFSET, offsetof(ngx_http_core_loc_conf_t, chunked_transfer_encoding), |