comparison src/http/modules/ngx_http_map_module.c @ 637:e60fe4cf1d4e release-0.3.40

nginx-0.3.40-RELEASE import *) Feature: the ngx_http_dav_module supports the MKCOL method. *) Feature: the "create_full_put_path" directive. *) Feature: the "$limit_rate" variable.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 19 Apr 2006 15:30:56 +0000
parents 425af804d968
children 36f7b549f481
comparison
equal deleted inserted replaced
636:21003753acbf 637:e60fe4cf1d4e
235 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGABLE); 235 var = ngx_http_add_variable(cf, &name, NGX_HTTP_VAR_CHANGABLE);
236 if (var == NULL) { 236 if (var == NULL) {
237 return NGX_CONF_ERROR; 237 return NGX_CONF_ERROR;
238 } 238 }
239 239
240 var->handler = ngx_http_map_variable; 240 var->get_handler = ngx_http_map_variable;
241 var->data = (uintptr_t) map; 241 var->data = (uintptr_t) map;
242 242
243 pool = ngx_create_pool(16384, cf->log); 243 pool = ngx_create_pool(16384, cf->log);
244 if (pool == NULL) { 244 if (pool == NULL) {
245 return NGX_CONF_ERROR; 245 return NGX_CONF_ERROR;