aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil
diff options
context:
space:
mode:
authorAndrew Karpow <andy@ndyk.de>2014-12-26 16:50:27 +0100
committerAndrew Karpow <andy@ndyk.de>2014-12-26 16:50:27 +0100
commit8a2473b9db2cf607a0ed9c88351d300769d5005f (patch)
tree70a7785068f56962d0b5370f895280cbb7a83a23 /src/libutil
parent6fca6b606f22dcf04a1a9ce2a5942df82b5d89a5 (diff)
downloadrspamd-8a2473b9db2cf607a0ed9c88351d300769d5005f.tar.gz
rspamd-8a2473b9db2cf607a0ed9c88351d300769d5005f.zip
make rspamd_http_message_find_header case-insensitive
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/http.c2
1 files changed, 1 insertions, 1 deletions
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;
}