summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar grunfink2025-10-21 13:57:43 +0200
committerGravatar grunfink2025-10-21 13:57:43 +0200
commit1ac922796bdd108ec52f877a97b962ea5e84c51a (patch)
tree558143ef48bf596be5ae0a566d83b10958fc972d
parentMerge pull request 'Improving Mastodon-api experience and Moshidon support' (... (diff)
downloadpenes-snac2-1ac922796bdd108ec52f877a97b962ea5e84c51a.tar.gz
penes-snac2-1ac922796bdd108ec52f877a97b962ea5e84c51a.tar.xz
penes-snac2-1ac922796bdd108ec52f877a97b962ea5e84c51a.zip
Minor tweak to Stefano's code.
-rw-r--r--xs_httpd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xs_httpd.h b/xs_httpd.h
index 0f03599..9be51e6 100644
--- a/xs_httpd.h
+++ b/xs_httpd.h
@@ -109,7 +109,7 @@ xs_dict *xs_httpd_request(FILE *f, xs_str **payload, int *p_size)
109 body = xs_append_m(body, chunk, chunk_size); 109 body = xs_append_m(body, chunk, chunk_size);
110 110
111 /* read trailing \r\n after chunk data */ 111 /* read trailing \r\n after chunk data */
112 xs_readline(f); 112 xs *dummy = xs_readline(f);
113 } 113 }
114 114
115 *p_size = xs_size(body) - 1; /* subtract trailing null */ 115 *p_size = xs_size(body) - 1; /* subtract trailing null */