From de69dfe31957f4ac6ae7504f8ac53baf02a6542f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 2 Feb 2015 14:25:03 +0000 Subject: [PATCH] Fix encrypted output. --- src/libutil/http.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libutil/http.c b/src/libutil/http.c index 47de41223..9b8e2a98c 100644 --- a/src/libutil/http.c +++ b/src/libutil/http.c @@ -1019,6 +1019,12 @@ rspamd_http_connection_write_message (struct rspamd_http_connection *conn, priv->buf->data = g_string_sized_new (128); buf = priv->buf->data; + if (priv->peer_key) { + priv->msg->peer_key = priv->peer_key; + priv->peer_key = NULL; + priv->encrypted = TRUE; + } + if (msg->method < HTTP_SYMBOLS) { if (msg->body == NULL || msg->body->len == 0) { pbody = NULL; -- 2.39.5