aboutsummaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-12 16:55:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-12 16:55:15 +0100
commit7059eb2f238638061a9af5ab13c1b1cdda9d2952 (patch)
treeffb776e63cb44a84580e4df4ef8fa6a74023de6c /src/controller.c
parent266911fd7a296715ed6eb24c03e9194b521823ae (diff)
downloadrspamd-7059eb2f238638061a9af5ab13c1b1cdda9d2952.tar.gz
rspamd-7059eb2f238638061a9af5ab13c1b1cdda9d2952.zip
[Minor] Add missing reply headers
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c
index d41860937..9ad1cecf9 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);