aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-02 12:28:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2014-05-02 12:28:43 +0100
commitde4532aba29f10943776f85ae625633eb8c8406f (patch)
tree701d001653ae5ff56164c713a98d4d25c1813cce /src/libserver/protocol.c
parente6ddee95a731f41a9cca17fe5082bfcda9623924 (diff)
downloadrspamd-de4532aba29f10943776f85ae625633eb8c8406f.tar.gz
rspamd-de4532aba29f10943776f85ae625633eb8c8406f.zip
Handle HTTP headers during task processing.
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r--src/libserver/protocol.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c
index 8f42a08ce..df5e9723e 100644
--- a/src/libserver/protocol.c
+++ b/src/libserver/protocol.c
@@ -223,8 +223,9 @@ err:
return FALSE;
}
-static gboolean
-rspamd_protocol_handle_headers (struct rspamd_task *task, struct rspamd_http_message *msg)
+gboolean
+rspamd_protocol_handle_headers (struct rspamd_task *task,
+ struct rspamd_http_message *msg)
{
gchar *headern, *err, *tmp;
gboolean res = TRUE;
@@ -401,10 +402,6 @@ rspamd_protocol_handle_request (struct rspamd_task *task,
ret = rspamd_protocol_handle_url (task, msg);
}
- if (ret) {
- ret = rspamd_protocol_handle_headers (task, msg);
- }
-
return ret;
}