diff options
| author | ame <[email protected]> | 2024-02-01 16:03:43 -0600 |
|---|---|---|
| committer | ame <[email protected]> | 2024-02-01 16:03:43 -0600 |
| commit | 18a0280167c93985c15eed838a0319448530bee0 (patch) | |
| tree | fac30011871792c44bcf55d12f37affc15f210e1 /src/net.c | |
| parent | f93adc667dda0ee87770de78b7e60f4b989c2642 (diff) | |
fix header parsing
Diffstat (limited to 'src/net.c')
| -rw-r--r-- | src/net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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;
|
