aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 13:57:12 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-10-15 13:57:12 +0100
commit6acb77745e27717aa7a75b6775ca7b0ade23e318 (patch)
treeefae4a5b0c48b5a402bd7e94005b70a22668c2a7 /src
parent31265fee183928890620db6dac49aad2705d1df6 (diff)
downloadrspamd-6acb77745e27717aa7a75b6775ca7b0ade23e318.tar.gz
rspamd-6acb77745e27717aa7a75b6775ca7b0ade23e318.zip
Fix header name tokens setup.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 2f618164a..1dd22f309 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -517,6 +517,7 @@ rspamd_http_finish_header (struct rspamd_http_connection *conn,
priv->header->name->len - 4;
priv->header->value->begin = priv->header->combined->str +
priv->header->name->len + 2;
+ priv->header->name->begin = priv->header->combined->str;
DL_APPEND (priv->msg->headers, priv->header);
rspamd_http_check_special_header (conn, priv);
@@ -577,7 +578,6 @@ rspamd_http_on_header_value (http_parser * parser,
priv->new_header = TRUE;
priv->header->combined = rspamd_fstring_append (priv->header->combined,
": ", 2);
- priv->header->name->begin = priv->header->combined->str;
priv->header->name->len = priv->header->combined->len - 2;
}