comparison src/http/modules/ngx_http_userid_filter_module.c @ 126:df17fbafec8f NGINX_0_3_10

nginx 0.3.10 *) Change: the "valid_referers" directive and the "$invalid_referer" variable were moved to the new ngx_http_referer_module from the ngx_http_rewrite_module. *) Change: the "$apache_bytes_sent" variable name was changed to "$body_bytes_sent". *) Feature: the "$sent_http_..." variables. *) Feature: the "if" directive supports the "=" and "!=" operations. *) Feature: the "proxy_pass" directive supports the HTTPS protocol. *) Feature: the "proxy_set_body" directive. *) Feature: the "post_action" directive. *) Feature: the ngx_http_empty_gif_module. *) Feature: the "worker_cpu_affinity" directive for Linux. *) Bugfix: the "rewrite" directive did not unescape URI part in redirect, now it is unescaped except the %00-%25 and %7F-%FF characters. *) Bugfix: nginx could not be built by the icc 9.0 compiler. *) Bugfix: if the SSI was enabled for zero size static file, then the chunked response was encoded incorrectly.
author Igor Sysoev <http://sysoev.ru>
date Tue, 15 Nov 2005 00:00:00 +0300
parents d25a1d6034f1
children 91372f004adf
comparison
equal deleted inserted replaced
125:97504de1f89e 126:df17fbafec8f
592 { 592 {
593 uint32_t *uid; 593 uint32_t *uid;
594 ngx_http_userid_ctx_t *ctx; 594 ngx_http_userid_ctx_t *ctx;
595 ngx_http_userid_conf_t *conf; 595 ngx_http_userid_conf_t *conf;
596 596
597 v->valid = 1; 597 v->valid = 1;
598 v->no_cachable = 0; 598 v->no_cachable = 0;
599 v->not_found = 0; 599 v->not_found = 0;
600 600
601 ctx = ngx_http_get_module_ctx(r, ngx_http_userid_filter_module); 601 ctx = ngx_http_get_module_ctx(r, ngx_http_userid_filter_module);
602 602
632 } 632 }
633 633
634 634
635 static void * 635 static void *
636 ngx_http_userid_create_conf(ngx_conf_t *cf) 636 ngx_http_userid_create_conf(ngx_conf_t *cf)
637 { 637 {
638 ngx_http_userid_conf_t *conf; 638 ngx_http_userid_conf_t *conf;
639 639
640 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_userid_conf_t)); 640 conf = ngx_pcalloc(cf->pool, sizeof(ngx_http_userid_conf_t));
641 if (conf == NULL) { 641 if (conf == NULL) {
642 return NGX_CONF_ERROR; 642 return NGX_CONF_ERROR;
659 conf->service = NGX_CONF_UNSET; 659 conf->service = NGX_CONF_UNSET;
660 conf->expires = NGX_CONF_UNSET; 660 conf->expires = NGX_CONF_UNSET;
661 conf->mark = (u_char) '\xFF'; 661 conf->mark = (u_char) '\xFF';
662 662
663 return conf; 663 return conf;
664 } 664 }
665 665
666 666
667 static char * 667 static char *
668 ngx_http_userid_merge_conf(ngx_conf_t *cf, void *parent, void *child) 668 ngx_http_userid_merge_conf(ngx_conf_t *cf, void *parent, void *child)
669 { 669 {