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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 31b0b3be3..1cc10f48e 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -14,11 +14,7 @@
* limitations under the License.
*/
#include "lua_common.h"
-#include "dns.h"
-#include "http.h"
#include "http_private.h"
-#include "utlist.h"
-#include "libcryptobox/keypair.h"
#include "unix-std.h"
/***
@@ -181,7 +177,7 @@ lua_http_finish_handler (struct rspamd_http_connection *conn,
/* Error */
lua_pushnil (cbd->L);
/* Reply code */
- lua_pushinteger (cbd->L, msg->code);
+ lua_pushnumber (cbd->L, msg->code);
/* Body */
body = rspamd_http_message_get_body (msg, &body_len);