diff options
Diffstat (limited to 'src/libserver/protocol.c')
-rw-r--r-- | src/libserver/protocol.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libserver/protocol.c b/src/libserver/protocol.c index 44bfe5a4e..bc64b7c31 100644 --- a/src/libserver/protocol.c +++ b/src/libserver/protocol.c @@ -905,6 +905,11 @@ rspamd_protocol_write_reply (struct rspamd_task *task) const gchar *ctype = "application/json"; msg = rspamd_http_new_message (HTTP_RESPONSE); + + if (task->peer_key) { + msg->peer_key = g_string_new (task->peer_key->str); + msg_info ("<%s> writing encrypted reply", task->message_id); + } if (!task->is_json) { /* Turn compatibility on */ msg->method = HTTP_SYMBOLS; |