mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-29 16:03:37 +00:00
Backport from xs.
This commit is contained in:
parent
e0fb6a7064
commit
a5a7ab9ba5
2 changed files with 5 additions and 5 deletions
8
xs_url.h
8
xs_url.h
|
@ -106,13 +106,13 @@ xs_dict *xs_multipart_form_data(const char *payload, int p_size, const char *hea
|
||||||
if (xs_list_len(l1) != 2)
|
if (xs_list_len(l1) != 2)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
boundary = xs_dup(xs_list_get(l1, 1));
|
xs *t_boundary = xs_dup(xs_list_get(l1, 1));
|
||||||
|
|
||||||
/* Tokodon sends the boundary header with double quotes surrounded */
|
/* Tokodon sends the boundary header with double quotes surrounded */
|
||||||
if (xs_between("\"", boundary, "\"") != 0)
|
if (xs_between("\"", t_boundary, "\"") != 0)
|
||||||
boundary = xs_strip_chars_i(boundary, "\"");
|
t_boundary = xs_strip_chars_i(t_boundary, "\"");
|
||||||
|
|
||||||
boundary = xs_fmt("--%s", boundary);
|
boundary = xs_fmt("--%s", t_boundary);
|
||||||
}
|
}
|
||||||
|
|
||||||
bsz = strlen(boundary);
|
bsz = strlen(boundary);
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
/* ab0749f821f1c98d16cbec53201bdf2ba2a24a43 2024-11-20T17:02:42+01:00 */
|
/* 297f71e198be7819213e9122e1e78c3b963111bc 2024-11-24T18:48:42+01:00 */
|
||||||
|
|
Loading…
Reference in a new issue