Mercurial > hg > nginx-vendor-0-8
diff src/core/ngx_hash.h @ 198:e6da4931e0e0 NGINX_0_3_46
nginx 0.3.46
*) 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.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Thu, 11 May 2006 00:00:00 +0400 |
parents | 36af50a5582d |
children | 95d92ec39071 |
line wrap: on
line diff
--- 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 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 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_ */