Commit 987d090a authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Ignore upper/lower case when comparing header names

parent 0690efa6
......@@ -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++;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment