]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add missing reply headers
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 12 Aug 2018 15:55:01 +0000 (16:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 12 Aug 2018 15:55:15 +0000 (16:55 +0100)
src/controller.c

index d418609379eb54a956f29202660762e5f7074e41..9ad1cecf9057f0402ba353ca142fde395b5c69e4 100644 (file)
@@ -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);