commit a5a7ab9
default
·
2024-11-24 17:49:17 +0000 UTC
parent e0fb6a7
Backport from xs.
2 files changed,
+5,
-5
M
xs_url.h
M
xs_url.h
+4,
-4
1@@ -106,13 +106,13 @@ xs_dict *xs_multipart_form_data(const char *payload, int p_size, const char *hea
2 if (xs_list_len(l1) != 2)
3 return NULL;
4
5- boundary = xs_dup(xs_list_get(l1, 1));
6+ xs *t_boundary = xs_dup(xs_list_get(l1, 1));
7
8 /* Tokodon sends the boundary header with double quotes surrounded */
9- if (xs_between("\"", boundary, "\"") != 0)
10- boundary = xs_strip_chars_i(boundary, "\"");
11+ if (xs_between("\"", t_boundary, "\"") != 0)
12+ t_boundary = xs_strip_chars_i(t_boundary, "\"");
13
14- boundary = xs_fmt("--%s", boundary);
15+ boundary = xs_fmt("--%s", t_boundary);
16 }
17
18 bsz = strlen(boundary);
+1,
-1
1@@ -1 +1 @@
2-/* ab0749f821f1c98d16cbec53201bdf2ba2a24a43 2024-11-20T17:02:42+01:00 */
3+/* 297f71e198be7819213e9122e1e78c3b963111bc 2024-11-24T18:48:42+01:00 */