Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 5de933dc4095ad444196793b7e197c6111727dae 1 parent b3c6230
@agentzh agentzh authored
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 \
Please sign in to comment.
Something went wrong with that request. Please try again.