diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-20 17:34:15 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-20 17:34:15 +0100 |
commit | fc91dd7a8186ef9d4d9f2e861f5d6e482033e748 (patch) | |
tree | a49d39e4d6d9b5e524197615e0a00aeff8682244 /src/libserver | |
parent | 7e785d608880eae1ed9698ded30b83de944c1095 (diff) | |
download | rspamd-fc91dd7a8186ef9d4d9f2e861f5d6e482033e748.tar.gz rspamd-fc91dd7a8186ef9d4d9f2e861f5d6e482033e748.zip |
Use caseless hash and equal functions for request headers.
Diffstat (limited to 'src/libserver')
-rw-r--r-- | src/libserver/task.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c index 26de6a69f..1874847de 100644 --- a/src/libserver/task.c +++ b/src/libserver/task.c @@ -71,13 +71,13 @@ rspamd_task_new (struct rspamd_worker *worker) new_task->re_cache); new_task->raw_headers = g_hash_table_new (rspamd_strcase_hash, rspamd_strcase_equal); - new_task->request_headers = g_hash_table_new_full ((GHashFunc)g_string_hash, - (GEqualFunc)g_string_equal, gstring_destruct, gstring_destruct); + new_task->request_headers = g_hash_table_new_full (rspamd_gstring_icase_hash, + rspamd_gstring_icase_equal, gstring_destruct, gstring_destruct); rspamd_mempool_add_destructor (new_task->task_pool, (rspamd_mempool_destruct_t) g_hash_table_unref, new_task->request_headers); - new_task->reply_headers = g_hash_table_new_full ((GHashFunc)g_string_hash, - (GEqualFunc)g_string_equal, gstring_destruct, gstring_destruct); + new_task->reply_headers = g_hash_table_new_full (rspamd_gstring_icase_hash, + rspamd_gstring_icase_equal, gstring_destruct, gstring_destruct); rspamd_mempool_add_destructor (new_task->task_pool, (rspamd_mempool_destruct_t) g_hash_table_unref, new_task->reply_headers); |