comparison src/http/modules/ngx_http_userid_filter_module.c @ 3522:d24f030507cd

allow to use $uid_got in SSI and perl module
author Igor Sysoev <igor@sysoev.ru>
date Tue, 18 May 2010 16:24:56 +0000
parents dd1570b6f237
children 7a8e7576eb94
comparison
equal deleted inserted replaced
3521:0451b4e40cdb 3522:d24f030507cd
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;