]> source.dussan.org Git - rspamd.git/commitdiff
Set header value properly for decrypted headers.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 May 2015 09:05:16 +0000 (10:05 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 11 May 2015 09:05:16 +0000 (10:05 +0100)
src/libutil/http.c

index 7ff83f5f0e2de283e6e3b7be7391855de7a82dd6..3a996f6e7a933aeb03e891d184422a2833454463 100644 (file)
@@ -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);