diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-25 15:23:22 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-02-25 15:23:22 +0000 |
commit | d8833f06bd6272520a4d6994b54c0df43ca3c6f0 (patch) | |
tree | 03656d17fd1979d4f456717264ac43c04a7cd09b /src/lua/lua_http.c | |
parent | fcf1b617ed850e7cbab47b37b37eda6a7db3b52c (diff) | |
download | rspamd-d8833f06bd6272520a4d6994b54c0df43ca3c6f0.tar.gz rspamd-d8833f06bd6272520a4d6994b54c0df43ca3c6f0.zip |
[Project] HTTP: Rework HTTP connections API to simplify its usage
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r-- | src/lua/lua_http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index 8c3dfb929..a8616e82a 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -381,6 +381,7 @@ lua_http_make_connection (struct lua_http_cbdata *cbd) if (cbd->cfg) { cbd->conn = rspamd_http_connection_new ( NULL, + fd, NULL, lua_http_error_handler, lua_http_finish_handler, @@ -390,6 +391,7 @@ lua_http_make_connection (struct lua_http_cbdata *cbd) else { cbd->conn = rspamd_http_connection_new ( NULL, + fd, NULL, lua_http_error_handler, lua_http_finish_handler, @@ -436,8 +438,8 @@ lua_http_make_connection (struct lua_http_cbdata *cbd) cbd->msg = NULL; rspamd_http_connection_write_message (cbd->conn, msg, - cbd->host, cbd->mime_type, cbd, fd, - &cbd->tv, cbd->ev_base); + cbd->host, cbd->mime_type, cbd, + &cbd->tv); return TRUE; } |