Skip to content

Commit 6d637a7

Browse files
committed
update get header key case insensitively
1 parent ec130fe commit 6d637a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ngx_link_func_module.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1686,7 +1686,7 @@ ngx_link_func_get_header(ngx_link_func_ctx_t *ctx, const char*key) {
16861686
i = 0;
16871687
}
16881688

1689-
if (ngx_strncmp(key, header[i].key.data , header[i].key.len) == 0 ) {
1689+
if (ngx_strncasecmp( (u_char*) key, header[i].key.data , header[i].key.len) == 0 ) {
16901690
u_char *ret = ngx_pcalloc(r->pool, header[i].value.len + 1);
16911691
ngx_memcpy(ret, header[i].value.data, header[i].value.len);
16921692
return ret;

0 commit comments

Comments
 (0)