[master] 987d090 Ignore upper/lower case when comparing header names

Poul-Henning Kamp phk at FreeBSD.org
Sat Feb 25 22:57:05 CET 2017


commit 987d090a2bcd9961f8085baeae2416c1d8c71e34
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date:   Sat Feb 25 21:55:36 2017 +0000

    Ignore upper/lower case when comparing header names

diff --git a/bin/varnishtest/vtc_http2.c b/bin/varnishtest/vtc_http2.c
index 5f6701c..745490c 100644
--- a/bin/varnishtest/vtc_http2.c
+++ b/bin/varnishtest/vtc_http2.c
@@ -884,7 +884,7 @@ find_header(const struct hpk_hdr *h, const char *k)
 
 	int kl = strlen(k);
 	while (h->t) {
-		if (kl == h->key.len  && !memcmp(h->key.ptr, k, kl))
+		if (kl == h->key.len  && !strncasecmp(h->key.ptr, k, kl))
 			return h->value.ptr;
 		h++;
 	}



More information about the varnish-commit mailing list