From 582585d17a5d2b55082d9089ca3c8faed9452acf Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 1 Feb 2024 16:03:43 -0600 Subject: fix header parsing --- src/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net.c') diff --git a/src/net.c b/src/net.c index c831803..8dcde19 100644 --- a/src/net.c +++ b/src/net.c @@ -243,7 +243,7 @@ int l_send(lua_State* L){ if(strcmp(key, "Code") != 0){ str_push(header_vs, key); str_push(header_vs, ": "); - str_push(header_vs, (char*)luaL_checklstring(L, -2, NULL)); + str_push(header_vs, (char*)luaL_checklstring(L, -1, NULL)); str_push(header_vs, "\r\n"); } lua_pop(L, 1); @@ -467,7 +467,7 @@ int l_GET(lua_State* L){ if(paths == NULL) paths = parray_init(); - + //please free this void* v_old_paths = parray_get(paths, portc); struct sarray_t* old_paths; -- cgit v1.2.3