diff options
author | Igor Sysoev <igor@sysoev.ru> | 2008-12-11 10:48:48 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2008-12-11 10:48:48 +0300 |
commit | 976603a6465f4837ed6379e64e28cc80238b6a86 (patch) | |
tree | 2a3323de66fd1287ebdfe91bd0c540d09e4c663b /src/http/modules/ngx_http_geo_module.c | |
parent | 0e179536791a9b31fa9812cb0073205ea2ca3626 (diff) |
remove before nginx-0.1.25 compatibility code
Diffstat (limited to 'src/http/modules/ngx_http_geo_module.c')
-rw-r--r-- | src/http/modules/ngx_http_geo_module.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/http/modules/ngx_http_geo_module.c b/src/http/modules/ngx_http_geo_module.c index 4c2b679e2..661a37e83 100644 --- a/src/http/modules/ngx_http_geo_module.c +++ b/src/http/modules/ngx_http_geo_module.c @@ -170,7 +170,7 @@ ngx_http_geo_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) { char *rv; size_t len; - ngx_str_t *value, name; + ngx_str_t *value; ngx_uint_t i; ngx_conf_t save; ngx_pool_t *pool; @@ -180,18 +180,7 @@ ngx_http_geo_block(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) value = cf->args->elts; - name = value[1]; - - if (name.data[0] != '$') { - ngx_conf_log_error(NGX_LOG_WARN, cf, 0, - "\"%V\" variable name should start with '$'", - &value[1]); - } else { - name.len--; - name.data++; - } - - var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGEABLE); + var = ngx_http_add_variable(cf, &value[1], NGX_HTTP_VAR_CHANGEABLE); if (var == NULL) { return NGX_CONF_ERROR; } |