aboutsummaryrefslogtreecommitdiff
path: root/xs_url.h
diff options
context:
space:
mode:
authorshtrophic <christoph@liebender.dev>2024-12-05 17:16:57 +0100
committershtrophic <christoph@liebender.dev>2024-12-05 17:16:57 +0100
commit7e743e8918e0a4d058217ec33ab745b1f1a97335 (patch)
tree9aaed93dff31ccfbc63b4302dd8531a47c11f9bf /xs_url.h
parentcbd89bdf16674b577cee7d7533ea69014cb307e7 (diff)
parent221eeabf0c00f076ee8ae670811aabbc5b11a826 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'xs_url.h')
-rw-r--r--xs_url.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/xs_url.h b/xs_url.h
index cd540fa..ac43585 100644
--- a/xs_url.h
+++ b/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)
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);