From 3338cfdfbc5522ca96319ece6d21ddc4d1dce45d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 11 May 2006 14:43:47 +0000 Subject: nginx-0.3.46-RELEASE import *) Feature: the "proxy_hide_header", "proxy_pass_header", "fastcgi_hide_header", and "fastcgi_pass_header" directives. *) Change: the "proxy_pass_x_powered_by", "fastcgi_x_powered_by", and "proxy_pass_server" directives were canceled. *) Feature: the "X-Accel-Buffering" response header line is supported in proxy mode. *) Bugfix: the reconfiguration bug and memory leaks in the ngx_http_perl_module. --- src/core/ngx_hash.h | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/core/ngx_hash.h') diff --git a/src/core/ngx_hash.h b/src/core/ngx_hash.h index ad7343807..da8b7e0b2 100644 --- a/src/core/ngx_hash.h +++ b/src/core/ngx_hash.h @@ -94,6 +94,7 @@ typedef struct { ngx_uint_t hash; ngx_str_t key; ngx_str_t value; + u_char *lowcase_key; } ngx_table_elt_t; @@ -106,7 +107,7 @@ ngx_int_t ngx_hash_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_int_t ngx_hash_wildcard_init(ngx_hash_init_t *hinit, ngx_hash_key_t *names, ngx_uint_t nelts); -#define ngx_hash(key, c) key * 31 + c +#define ngx_hash(key, c) ((ngx_uint_t) key * 31 + c) ngx_uint_t ngx_hash_key(u_char *data, size_t len); ngx_uint_t ngx_hash_key_lc(u_char *data, size_t len); @@ -115,9 +116,4 @@ ngx_int_t ngx_hash_add_key(ngx_hash_keys_arrays_t *ha, ngx_str_t *key, void *value, ngx_uint_t flags); -#define ngx_hash0(key, c) key + c -ngx_int_t ngx_hash0_init(ngx_hash0_t *hash, ngx_pool_t *pool, void *names, - ngx_uint_t nelts); - - #endif /* _NGX_HASH_H_INCLUDED_ */ -- cgit