Mercurial > hg > nginx-vendor-0-7
comparison src/http/modules/ngx_http_map_module.c @ 186:54aabf2b0bc6 NGINX_0_3_40
nginx 0.3.40
*) 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 <http://sysoev.ru> |
---|---|
date | Wed, 19 Apr 2006 00:00:00 +0400 |
parents | 84910468f6de |
children | fbf2b2f66c9f |
comparison
equal
deleted
inserted
replaced
185:a9c5dc369ffe | 186:54aabf2b0bc6 |
---|---|
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; |