aboutsummaryrefslogtreecommitdiff
path: root/src/net.c
diff options
context:
space:
mode:
authorame <[email protected]>2026-06-12 00:56:21 -0500
committerame <[email protected]>2026-06-12 00:56:21 -0500
commit4ecdd3c18ccc5d3bcaa82ed720bf28443aa0ca9d (patch)
tree0c263f51545c664dd1d818cf63f6912ef0e73837 /src/net.c
parent66aedfd65cff3494b70e8072646094479e3bfed8 (diff)
http body parsing rewrite
Diffstat (limited to 'src/net.c')
-rw-r--r--src/net.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/net.c b/src/net.c
index df84295..b2b675a 100644
--- a/src/net.c
+++ b/src/net.c
@@ -777,7 +777,7 @@ void* handle_client(void *_arg){
luaI_tseti(L, req_idx, "_bytes", bite - header_eof - 4);
//luaI_tseti(L, req_idx, "client_fd", client_fd);
- luaI_tsetcf(L, req_idx, "roll", l_roll);
+ luaI_tsetcf(L, req_idx, "load", l_load);
luaI_tsetv(L, res_idx, "req", req_idx);
luaI_tsetv(L, req_idx, "res", res_idx);
@@ -874,9 +874,10 @@ net_end:
str_free(parsed_path.path);
parray_clear(parsed_path.query, STR);
- if(file_cont->boundary != NULL) str_free(file_cont->current);
+ if(file_cont->current != NULL) str_free(file_cont->current);
if(file_cont->boundary != NULL) str_free(file_cont->boundary);
- if(file_cont->boundary_id != NULL) str_free(file_cont->boundary_id);
+ if(file_cont->line != NULL) str_free(file_cont->line);
+ //if(file_cont->boundary_id != NULL) str_free(file_cont->boundary_id);
free(file_cont);
}