aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-13 14:27:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-13 17:31:29 +0100
commitbc6a03a1086e8f7d1c1211633f61ee25b12e16a2 (patch)
tree10bf4000b3eb618aab1ba0e1a6b76b9e3b66460d /src/lua/lua_http.c
parent1ad42d3b00442d7122b16c72d1226f6c2b0e133f (diff)
downloadrspamd-bc6a03a1086e8f7d1c1211633f61ee25b12e16a2.tar.gz
rspamd-bc6a03a1086e8f7d1c1211633f61ee25b12e16a2.zip
[Feature] Implement SSL support in http client
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 0e9c99cc7..298da5a47 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -201,9 +201,13 @@ lua_http_make_connection (struct lua_http_cbdata *cbd)
return FALSE;
}
cbd->fd = fd;
- cbd->conn = rspamd_http_connection_new (NULL, lua_http_error_handler,
- lua_http_finish_handler, RSPAMD_HTTP_CLIENT_SIMPLE,
- RSPAMD_HTTP_CLIENT, NULL);
+ cbd->conn = rspamd_http_connection_new (NULL,
+ lua_http_error_handler,
+ lua_http_finish_handler,
+ RSPAMD_HTTP_CLIENT_SIMPLE,
+ RSPAMD_HTTP_CLIENT,
+ NULL,
+ NULL);
rspamd_http_connection_write_message (cbd->conn, cbd->msg,
NULL, cbd->mime_type, cbd, fd, &cbd->tv, cbd->ev_base);