diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-18 12:00:00 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-03-18 12:00:00 +0000 |
commit | 3a1974cf17f235b7bbb98de714fe0210ddb2c596 (patch) | |
tree | 7168784fff3f9d8b9bc19301cc34278218d4cd57 /src/libserver/rspamd_control.c | |
parent | dbfdd2bf45134a467fed1e625c7bcbe93f199e24 (diff) | |
download | rspamd-3a1974cf17f235b7bbb98de714fe0210ddb2c596.tar.gz rspamd-3a1974cf17f235b7bbb98de714fe0210ddb2c596.zip |
[Rework] Another iteration of HTTP interfaces rework
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r-- | src/libserver/rspamd_control.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index 149ad4245..12d37cdbc 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -518,13 +518,12 @@ rspamd_control_process_client_socket (struct rspamd_main *rspamd_main, session = g_malloc0 (sizeof (*session)); session->fd = fd; - session->conn = rspamd_http_connection_new (rspamd_main->http_ctx, + session->conn = rspamd_http_connection_new_server (rspamd_main->http_ctx, fd, NULL, rspamd_control_error_handler, rspamd_control_finish_handler, - 0, - RSPAMD_HTTP_SERVER); + 0); session->rspamd_main = rspamd_main; session->addr = addr; rspamd_http_connection_read_message (session->conn, session, |