summaryrefslogtreecommitdiff
path: root/xs_url.h
diff options
context:
space:
mode:
authorGravatar grunfink2026-02-23 06:49:12 +0100
committerGravatar grunfink2026-02-23 06:49:12 +0100
commit2828f1aa5964ff586b5dfac5e5fa2c29309c8ad3 (patch)
tree3825433d313601ce08940d73b3627673c1438746 /xs_url.h
parentMore JSON parser fixes. (diff)
downloadsnac2-2828f1aa5964ff586b5dfac5e5fa2c29309c8ad3.tar.gz
snac2-2828f1aa5964ff586b5dfac5e5fa2c29309c8ad3.tar.xz
snac2-2828f1aa5964ff586b5dfac5e5fa2c29309c8ad3.zip
Fixed parsing error in xs_multipart_form_data().
Diffstat (limited to 'xs_url.h')
-rw-r--r--xs_url.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xs_url.h b/xs_url.h
index 56d6d9d..ef35a4b 100644
--- a/xs_url.h
+++ b/xs_url.h
@@ -289,6 +289,9 @@ xs_dict *xs_multipart_form_data(const char *payload, int p_size, const char *hea
289 po = p - payload; 289 po = p - payload;
290 ps = q - p - 2; /* - 2 because the final \r\n */ 290 ps = q - p - 2; /* - 2 because the final \r\n */
291 291
292 if (ps <= 0)
293 break;
294
292 /* is it a filename? */ 295 /* is it a filename? */
293 if (fn != NULL) { 296 if (fn != NULL) {
294 /* p_var value is a list */ 297 /* p_var value is a list */