diff options
| author | shtrophic <christoph@liebender.dev> | 2024-12-05 17:16:57 +0100 |
|---|---|---|
| committer | shtrophic <christoph@liebender.dev> | 2024-12-05 17:16:57 +0100 |
| commit | 7e743e8918e0a4d058217ec33ab745b1f1a97335 (patch) | |
| tree | 9aaed93dff31ccfbc63b4302dd8531a47c11f9bf /xs_url.h | |
| parent | cbd89bdf16674b577cee7d7533ea69014cb307e7 (diff) | |
| parent | 221eeabf0c00f076ee8ae670811aabbc5b11a826 (diff) | |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'xs_url.h')
| -rw-r--r-- | xs_url.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) 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 */ - if (xs_between("\"", boundary, "\"") != 0) - boundary = xs_strip_chars_i(boundary, "\""); + if (xs_between("\"", t_boundary, "\"") != 0) + t_boundary = xs_strip_chars_i(t_boundary, "\""); - boundary = xs_fmt("--%s", boundary); + boundary = xs_fmt("--%s", t_boundary); } bsz = strlen(boundary); |