From fc91dd7a8186ef9d4d9f2e861f5d6e482033e748 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 20 May 2015 17:34:15 +0100 Subject: Use caseless hash and equal functions for request headers. --- src/libserver/task.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/libserver') 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); -- cgit v1.2.3