aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2024-03-11 18:59:53 +0000
committerVsevolod Stakhov <vsevolod@rspamd.com>2024-03-11 18:59:53 +0000
commit9b78be4f03b67d4feca3081b9427ac5ed1d241c9 (patch)
treeab6bb423640ace63bbfa71de24a167fbfd2d7dc5 /src/lua
parenta4de9b2ebb9aa47ebff0c71fb980daf4eb5ca0cc (diff)
downloadrspamd-9b78be4f03b67d4feca3081b9427ac5ed1d241c9.tar.gz
rspamd-9b78be4f03b67d4feca3081b9427ac5ed1d241c9.zip
[Feature] Support reply in message pack format
Rspamd currently sends reply in JSON format. However, message pack seems to be a better choice for a compatible client. It is faster and does not need escaping or even UTF8 validation. This is a surface for further updates.
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lua/lua_common.c b/src/lua/lua_common.c
index 92e26417a..cf4ca8023 100644
--- a/src/lua/lua_common.c
+++ b/src/lua/lua_common.c
@@ -1974,8 +1974,7 @@ rspamd_lua_check_udata_common(lua_State *L, gint pos, const gchar *classname,
gboolean fatal)
{
void *p = lua_touserdata(L, pos);
- guint i, top = lua_gettop(L);
- khiter_t k;
+ gint i, top = lua_gettop(L);
if (p == NULL) {
goto err;