aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index cb2026421..c292428c2 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -183,7 +183,7 @@ lua_http_finish_handler (struct rspamd_http_connection *conn,
/* Error */
lua_pushnil (cbd->L);
/* Reply code */
- lua_pushnumber (cbd->L, msg->code);
+ lua_pushinteger (cbd->L, msg->code);
/* Body */
body = rspamd_http_message_get_body (msg, &body_len);