From 7059eb2f238638061a9af5ab13c1b1cdda9d2952 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 12 Aug 2018 16:55:01 +0100 Subject: [PATCH] [Minor] Add missing reply headers --- src/controller.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controller.c b/src/controller.c index d418609379..9ad1cecf90 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1059,6 +1059,7 @@ rspamd_controller_handle_get_map (struct rspamd_http_connection_entry *conn_ent, } rspamd_http_connection_reset (conn_ent->conn); + rspamd_http_router_insert_headers (conn_ent->rt, msg); rspamd_http_connection_write_message (conn_ent->conn, reply, NULL, "text/plain", conn_ent, conn_ent->conn->fd, conn_ent->rt->ptv, conn_ent->rt->ev_base); @@ -1925,6 +1926,7 @@ rspamd_controller_scan_reply (struct rspamd_task *task) msg->code = 200; rspamd_protocol_http_reply (msg, task, NULL); rspamd_http_connection_reset (conn_ent->conn); + rspamd_http_router_insert_headers (conn_ent->rt, msg); rspamd_http_connection_write_message (conn_ent->conn, msg, NULL, "application/json", conn_ent, conn_ent->conn->fd, conn_ent->rt->ptv, conn_ent->rt->ev_base); -- 2.47.3