diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-04 18:31:28 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-08-04 18:31:28 +0100 |
commit | d8555003485d0a47d88ec7a80a717c730e85ffbd (patch) | |
tree | 3f0b5e43a3fd26e2524fe5e05eeb500b8772d4d3 /src/libmime | |
parent | a569362933d9fb6993721d68a3e3179bb5ac7b6c (diff) | |
download | rspamd-d8555003485d0a47d88ec7a80a717c730e85ffbd.tar.gz rspamd-d8555003485d0a47d88ec7a80a717c730e85ffbd.zip |
[Fix] Fix multiple request headers structure
Diffstat (limited to 'src/libmime')
-rw-r--r-- | src/libmime/message.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libmime/message.c b/src/libmime/message.c index 87a0123fc..a3b673f28 100644 --- a/src/libmime/message.c +++ b/src/libmime/message.c @@ -1271,9 +1271,7 @@ rspamd_message_from_data (struct rspamd_task *task, GByteArray *data, } } - srch.begin = "Content-Type"; - srch.len = sizeof ("Content-Type") - 1; - tok = g_hash_table_lookup (task->request_headers, &srch); + tok = rspamd_task_get_request_header (task, "Content-Type"); if (tok) { /* We have Content-Type defined */ |