Mercurial > hg > nginx-vendor-0-8
comparison src/http/modules/ngx_http_geo_module.c @ 424:9da1d9d94d18 NGINX_0_7_24
nginx 0.7.24
*) Feature: the "if_modified_since" directive.
*) Bugfix: nginx did not process a FastCGI server response, if the
server send too many messages to stderr before response.
*) Bugfix: the "$cookie_..." variables did not work in the SSI and the
perl module.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 01 Dec 2008 00:00:00 +0300 |
parents | 88d3e895bdf9 |
children | e7dbea1ee115 |
comparison
equal
deleted
inserted
replaced
423:ca440bb56eca | 424:9da1d9d94d18 |
---|---|
253 if (ctx.high->default_value == NULL) { | 253 if (ctx.high->default_value == NULL) { |
254 ctx.high->default_value = &ngx_http_variable_null_value; | 254 ctx.high->default_value = &ngx_http_variable_null_value; |
255 } | 255 } |
256 | 256 |
257 } else { | 257 } else { |
258 if (ctx.tree == NULL) { | |
259 ctx.tree = ngx_radix_tree_create(cf->pool, -1); | |
260 if (ctx.tree == NULL) { | |
261 return NGX_CONF_ERROR; | |
262 } | |
263 } | |
264 | |
258 var->get_handler = ngx_http_geo_cidr_variable; | 265 var->get_handler = ngx_http_geo_cidr_variable; |
259 var->data = (uintptr_t) ctx.tree; | 266 var->data = (uintptr_t) ctx.tree; |
260 | 267 |
261 ngx_destroy_pool(ctx.temp_pool); | 268 ngx_destroy_pool(ctx.temp_pool); |
262 ngx_destroy_pool(pool); | 269 ngx_destroy_pool(pool); |