From: Andrew Karpow Date: Fri, 26 Dec 2014 15:50:27 +0000 (+0100) Subject: make rspamd_http_message_find_header case-insensitive X-Git-Tag: 0.8.0~17^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8a2473b9db2cf607a0ed9c88351d300769d5005f;p=rspamd.git make rspamd_http_message_find_header case-insensitive --- diff --git a/src/libutil/http.c b/src/libutil/http.c index b994907df..5a597fbd2 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1155,7 +1155,7 @@ rspamd_http_message_find_header (struct rspamd_http_message *msg, LL_FOREACH (msg->headers, hdr) { if (hdr->name->len == slen) { - if (memcmp (hdr->name->str, name, slen) == 0) { + if (g_ascii_strncasecmp(hdr->name->str, name, slen) == 0) { res = hdr->value->str; break; }