aboutsummaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/net.c')
-rw-r--r--src/net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net.c b/src/net.c
index e829654..53a5ceb 100644
--- a/src/net.c
+++ b/src/net.c
@@ -539,7 +539,9 @@ int _request(lua_State* L, struct request_state* state){
luaI_tsets(L, header_idx, "User-Agent", "lullaby/"MAJOR_VERSION);
if(params >= 3){
- luaI_jointable(L, header_idx, 3);
+ lua_pushvalue(L, header_idx);
+ lua_pushvalue(L, 3);
+ luaI_jointable(L);
}
str* header = str_init("");