Browse files

we should not set header->hash with ngx_hash_key_lc, not simply to 1.

  • Loading branch information...
1 parent b3c6230 commit 5de933dc4095ad444196793b7e197c6111727dae @agentzh agentzh committed Oct 1, 2011
Showing with 2 additions and 4 deletions.
  1. +1 −1 src/ngx_http_headers_more_headers_out.c
  2. +1 −1 src/ngx_http_headers_more_util.c
  3. +0 −2 util/build.sh
View
2 src/ngx_http_headers_more_headers_out.c
@@ -204,7 +204,7 @@ ngx_http_set_header_helper(ngx_http_request_t *r,
} else {
h[i].value = *value;
- h[i].hash = 1;
+ h[i].hash = hv->hash;
}
if (output_header) {
View
2 src/ngx_http_headers_more_util.c
@@ -80,7 +80,7 @@ ngx_http_headers_more_parse_header(ngx_conf_t *cf, ngx_str_t *cmd_name,
return NGX_ERROR;
}
- hv->hash = 1;
+ hv->hash = ngx_hash_key_lc(key.data, key.len);
hv->key = key;
hv->offset = 0;
View
2 util/build.sh
@@ -7,8 +7,6 @@ version=$1
force=$2
ngx-build $force $version \
- --with-cc-opt="-O0 -fprofile-arcs -ftest-coverage" \
- --with-ld-opt="-fprofile-arcs -ftest-coverage" \
--without-mail_pop3_module \
--without-mail_imap_module \
--without-mail_smtp_module \

0 comments on commit 5de933d

Please sign in to comment.