From a5a7ab9ba5b35659148ee6a20ddbd512c5aa53fd Mon Sep 17 00:00:00 2001 From: default Date: Sun, 24 Nov 2024 18:49:17 +0100 Subject: Backport from xs. --- xs_url.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'xs_url.h') 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); -- cgit v1.2.3