comparison src/http/modules/ngx_http_userid_filter_module.c @ 572:ff463db0be31 NGINX_0_8_38

nginx 0.8.38 *) Feature: the "proxy_no_cache" and "fastcgi_no_cache" directives. *) Feature: now the "rewrite" directive does a redirect automatically if the $scheme variable is used. Thanks to Piotr Sikora. *) Bugfix: now "limit_req" delay directive conforms to the described algorithm. Thanks to Maxim Dounin. *) Bugfix: the $uid_got variable might not be used in the SSI and perl modules.
author Igor Sysoev <http://sysoev.ru>
date Mon, 24 May 2010 00:00:00 +0400
parents 8246d8a2c2be
children c456a023113c
comparison
equal deleted inserted replaced
571:5b59e716792b 572:ff463db0be31
541 static ngx_int_t 541 static ngx_int_t
542 ngx_http_userid_add_variables(ngx_conf_t *cf) 542 ngx_http_userid_add_variables(ngx_conf_t *cf)
543 { 543 {
544 ngx_http_variable_t *var; 544 ngx_http_variable_t *var;
545 545
546 var = ngx_http_add_variable(cf, &ngx_http_userid_got, NGX_HTTP_VAR_NOHASH); 546 var = ngx_http_add_variable(cf, &ngx_http_userid_got, 0);
547 if (var == NULL) { 547 if (var == NULL) {
548 return NGX_ERROR; 548 return NGX_ERROR;
549 } 549 }
550 550
551 var->get_handler = ngx_http_userid_got_variable; 551 var->get_handler = ngx_http_userid_got_variable;