commit 1ac9227
grunfink
·
2025-10-21 11:57:43 +0000 UTC
parent ee87557
Minor tweak to Stefano's code.
1 files changed,
+1,
-1
+1,
-1
1@@ -109,7 +109,7 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
2 body = xs_append_m(body, chunk, chunk_size);
3
4 /* read trailing \r\n after chunk data */
5- xs_readline(f);
6+ xs *dummy = xs_readline(f);
7 }
8
9 *p_size = xs_size(body) - 1; /* subtract trailing null */