]> git.kaiwu.me - nginx.git/commitdiff
Gzip static: fixed NGX_CONF_FLAG misuse.
authorValentin Bartenev <vbart@nginx.com>
Mon, 3 Mar 2014 13:17:25 +0000 (17:17 +0400)
committerValentin Bartenev <vbart@nginx.com>
Mon, 3 Mar 2014 13:17:25 +0000 (17:17 +0400)
src/http/modules/ngx_http_gzip_static_module.c

index 6e777619b43ffb2f8eb01047f9f65973ec856274..1746e550423e5a6f3a33e7e4d4bdc0bb39fd906d 100644 (file)
@@ -38,7 +38,7 @@ static ngx_conf_enum_t  ngx_http_gzip_static[] = {
 static ngx_command_t  ngx_http_gzip_static_commands[] = {
 
     { ngx_string("gzip_static"),
-      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_CONF_TAKE1,
       ngx_conf_set_enum_slot,
       NGX_HTTP_LOC_CONF_OFFSET,
       offsetof(ngx_http_gzip_static_conf_t, enable),