Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_map_module.c @ 1714:6b81bbc36eaf stable-0.5
r1566 merge:
fix English grammar
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 12 Dec 2007 16:57:36 +0000 |
parents | cacb565c554e |
children |
comparison
equal
deleted
inserted
replaced
1713:389aeafc3b84 | 1714:6b81bbc36eaf |
---|---|
219 | 219 |
220 name = value[2]; | 220 name = value[2]; |
221 name.len--; | 221 name.len--; |
222 name.data++; | 222 name.data++; |
223 | 223 |
224 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGABLE); | 224 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGEABLE); |
225 if (var == NULL) { | 225 if (var == NULL) { |
226 return NGX_CONF_ERROR; | 226 return NGX_CONF_ERROR; |
227 } | 227 } |
228 | 228 |
229 var->get_handler = ngx_http_map_variable; | 229 var->get_handler = ngx_http_map_variable; |
428 if (var->data == NULL) { | 428 if (var->data == NULL) { |
429 return NGX_CONF_ERROR; | 429 return NGX_CONF_ERROR; |
430 } | 430 } |
431 | 431 |
432 var->valid = 1; | 432 var->valid = 1; |
433 var->no_cachable = 0; | 433 var->no_cacheable = 0; |
434 var->not_found = 0; | 434 var->not_found = 0; |
435 | 435 |
436 vp = ngx_array_push(&ctx->values_hash[key]); | 436 vp = ngx_array_push(&ctx->values_hash[key]); |
437 if (vp == NULL) { | 437 if (vp == NULL) { |
438 return NGX_CONF_ERROR; | 438 return NGX_CONF_ERROR; |