comparison src/http/modules/ngx_http_referer_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 4cd3e70c4d60
children 5bef04fc3fd5
comparison
equal deleted inserted replaced
185:a9c5dc369ffe 186:54aabf2b0bc6
296 NGX_HTTP_VAR_CHANGABLE|NGX_HTTP_VAR_NOHASH); 296 NGX_HTTP_VAR_CHANGABLE|NGX_HTTP_VAR_NOHASH);
297 if (var == NULL) { 297 if (var == NULL) {
298 return NGX_CONF_ERROR; 298 return NGX_CONF_ERROR;
299 } 299 }
300 300
301 var->handler = ngx_http_referer_variable; 301 var->get_handler = ngx_http_referer_variable;
302 302
303 if (rlcf->keys == NULL) { 303 if (rlcf->keys == NULL) {
304 rlcf->keys = ngx_pcalloc(cf->temp_pool, sizeof(ngx_hash_keys_arrays_t)); 304 rlcf->keys = ngx_pcalloc(cf->temp_pool, sizeof(ngx_hash_keys_arrays_t));
305 if (rlcf->keys == NULL) { 305 if (rlcf->keys == NULL) {
306 return NGX_CONF_ERROR; 306 return NGX_CONF_ERROR;