aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-11 10:05:16 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-11 10:05:16 +0100
commit3342ea09af60005184fc03fcec5fdff0e78b01d3 (patch)
treee851659106254d6f0ac793337a5f2966639bc4a1 /src
parentb90f502a92dd68c59e48154c086e272ed9064163 (diff)
downloadrspamd-3342ea09af60005184fc03fcec5fdff0e78b01d3.tar.gz
rspamd-3342ea09af60005184fc03fcec5fdff0e78b01d3.zip
Set header value properly for decrypted headers.
Diffstat (limited to 'src')
-rw-r--r--src/libutil/http.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libutil/http.c b/src/libutil/http.c
index 7ff83f5f0..3a996f6e7 100644
--- a/src/libutil/http.c
+++ b/src/libutil/http.c
@@ -633,6 +633,8 @@ rspamd_http_on_body_decrypted (http_parser * parser, const gchar *at, size_t len
if (priv->header != NULL) {
g_string_append_len (priv->header->combined, "\r\n", 2);
+ priv->header->value->str = priv->header->combined->str +
+ priv->header->name->len + 2;
priv->header->value->len = priv->header->combined->len -
priv->header->name->len - 4;
DL_APPEND (priv->msg->headers, priv->header);