aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_common.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-09 20:47:35 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-06-09 20:47:35 +0400
commit8383d4f139b7b5a694c6231cff6642c31d82fe72 (patch)
tree3d823b2b66b7d249fc0fa4163f02d78e5a1f3295 /src/lua/lua_common.c
parent25591d79bad7c201ee12717cde3c6c39e39e48e5 (diff)
downloadrspamd-8383d4f139b7b5a694c6231cff6642c31d82fe72.tar.gz
rspamd-8383d4f139b7b5a694c6231cff6642c31d82fe72.zip
* Add lua http support that makes it easy to send GET and POST request to HTTP servers from lua code
Diffstat (limited to 'src/lua/lua_common.c')
-rw-r--r--src/lua/lua_common.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 2a1783cfb..05bea312c 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -240,6 +240,7 @@ init_lua (struct config_file *cfg)
(void)luaopen_glib_regexp (L);
(void)luaopen_cdb (L);
(void)luaopen_xmlrpc (L);
+ (void)luaopen_http (L);
cfg->lua_state = L;
memory_pool_add_destructor (cfg->cfg_pool, (pool_destruct_func)lua_close, L);