Klaus Demo nginx / 976603a
remove before nginx-0.1.25 compatibility code Igor Sysoev 13 years ago
1 changed file(s) with 2 addition(s) and 13 deletion(s). Raw diff Collapse all Expand all
169169 {
170170 char *rv;
171171 size_t len;
172 ngx_str_t *value, name;
172 ngx_str_t *value;
173173 ngx_uint_t i;
174174 ngx_conf_t save;
175175 ngx_pool_t *pool;
179179
180180 value = cf->args->elts;
181181
182 name = value[1];
183
184 if (name.data[0] != '$') {
185 ngx_conf_log_error(NGX_LOG_WARN, cf, 0,
186 "\"%V\" variable name should start with '$'",
187 &value[1]);
188 } else {
189 name.len--;
190 name.data++;
191 }
192
193 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGEABLE);
182 var = ngx_http_add_variable(cf, &value[1], NGX_HTTP_VAR_CHANGEABLE);
194183 if (var == NULL) {
195184 return NGX_CONF_ERROR;
196185 }