comparison src/http/modules/ngx_http_gzip_static_module.c @ 5587:ceecde39853f

Gzip static: fixed NGX_CONF_FLAG misuse.
author Valentin Bartenev <vbart@nginx.com>
date Mon, 03 Mar 2014 17:17:25 +0400
parents e368b822d034
children fcb0420f90de
comparison
equal deleted inserted replaced
5586:db6d07dbef3c 5587:ceecde39853f
36 36
37 37
38 static ngx_command_t ngx_http_gzip_static_commands[] = { 38 static ngx_command_t ngx_http_gzip_static_commands[] = {
39 39
40 { ngx_string("gzip_static"), 40 { ngx_string("gzip_static"),
41 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_FLAG, 41 NGX_HTTP_MAIN_CONF|NGX_HTTP_SRV_CONF|NGX_HTTP_LOC_CONF|NGX_CONF_TAKE1,
42 ngx_conf_set_enum_slot, 42 ngx_conf_set_enum_slot,
43 NGX_HTTP_LOC_CONF_OFFSET, 43 NGX_HTTP_LOC_CONF_OFFSET,
44 offsetof(ngx_http_gzip_static_conf_t, enable), 44 offsetof(ngx_http_gzip_static_conf_t, enable),
45 &ngx_http_gzip_static }, 45 &ngx_http_gzip_static },
46 46