summaryrefslogtreecommitdiffhomepage
path: root/plop.c
diff options
context:
space:
mode:
Diffstat (limited to 'plop.c')
-rw-r--r--plop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plop.c b/plop.c
index 9748a02..e770a5a 100644
--- a/plop.c
+++ b/plop.c
@@ -113,7 +113,7 @@ int handle_client(lua_State * L, struct pollfd * pfd, struct request ** request,
lua_getglobal((*request)->lua, "Handler");
lua_insert((*request)->lua, 1);
lua_pushlstring((*request)->lua, (*request)->data, (*request)->length);
- lua_call((*request)->lua, 3, 1);
+ lua_call((*request)->lua, 4, 1);
size_t length;
const char * body = lua_tolstring((*request)->lua, -1, &length);