aboutsummaryrefslogtreecommitdiffstats
path: root/src/protocol.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-18 17:32:55 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-08-18 17:32:55 +0400
commit30bad7395e5f45360b5716aeb5e7338f204cd36c (patch)
tree0ef8a9c95bd1f10aa96459f078b8f1df0016d966 /src/protocol.c
parentc4cf1b8310acec912203865f64ccd25751f4af7a (diff)
downloadrspamd-30bad7395e5f45360b5716aeb5e7338f204cd36c.tar.gz
rspamd-30bad7395e5f45360b5716aeb5e7338f204cd36c.zip
* Introduce new system of contexts initialization. It would be used for other things in rspamd as well in future.
Ignore unknown headers in case of http.
Diffstat (limited to 'src/protocol.c')
-rw-r--r--src/protocol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/protocol.c b/src/protocol.c
index fe9621e21..ebca96bc7 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -582,8 +582,10 @@ parse_header (struct worker_task *task, f_str_t * line)
}
break;
default:
- msg_info ("wrong header: %s", headern);
- return FALSE;
+ if (!task->is_http) {
+ msg_info ("wrong header: %s", headern);
+ return FALSE;
+ }
}
return TRUE;