diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-11 18:59:53 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-03-11 18:59:53 +0000 |
commit | 9b78be4f03b67d4feca3081b9427ac5ed1d241c9 (patch) | |
tree | ab6bb423640ace63bbfa71de24a167fbfd2d7dc5 /src/lua | |
parent | a4de9b2ebb9aa47ebff0c71fb980daf4eb5ca0cc (diff) | |
download | rspamd-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.c | 3 |
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; |