Mercurial > hg > nginx-ranges
comparison src/http/modules/ngx_http_userid_filter_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 | 36af50a5582d |
children | 3866d57d9cfd |
comparison
equal
deleted
inserted
replaced
185:a9c5dc369ffe | 186:54aabf2b0bc6 |
---|---|
557 var = ngx_http_add_variable(cf, &ngx_http_userid_got, NGX_HTTP_VAR_NOHASH); | 557 var = ngx_http_add_variable(cf, &ngx_http_userid_got, NGX_HTTP_VAR_NOHASH); |
558 if (var == NULL) { | 558 if (var == NULL) { |
559 return NGX_ERROR; | 559 return NGX_ERROR; |
560 } | 560 } |
561 | 561 |
562 var->handler = ngx_http_userid_variable; | 562 var->get_handler = ngx_http_userid_variable; |
563 var->data = offsetof(ngx_http_userid_ctx_t, uid_got); | 563 var->data = offsetof(ngx_http_userid_ctx_t, uid_got); |
564 | 564 |
565 var = ngx_http_add_variable(cf, &ngx_http_userid_set, NGX_HTTP_VAR_NOHASH); | 565 var = ngx_http_add_variable(cf, &ngx_http_userid_set, NGX_HTTP_VAR_NOHASH); |
566 if (var == NULL) { | 566 if (var == NULL) { |
567 return NGX_ERROR; | 567 return NGX_ERROR; |
568 } | 568 } |
569 | 569 |
570 var->handler = ngx_http_userid_variable; | 570 var->get_handler = ngx_http_userid_variable; |
571 var->data = offsetof(ngx_http_userid_ctx_t, uid_set); | 571 var->data = offsetof(ngx_http_userid_ctx_t, uid_set); |
572 | 572 |
573 | 573 |
574 for (op = ngx_http_userid_log_fmt_ops; op->name.len; op++) { /* void */ } | 574 for (op = ngx_http_userid_log_fmt_ops; op->name.len; op++) { /* void */ } |
575 op->run = NULL; | 575 op->run = NULL; |