From 88fc843d3e9c31d50afbf1554344df05314931d3 Mon Sep 17 00:00:00 2001 From: default Date: Mon, 5 Aug 2024 18:39:15 +0200 Subject: Use xs_between() where applicable. --- xs_url.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xs_url.h') diff --git a/xs_url.h b/xs_url.h index 9deda38..56e0f53 100644 --- a/xs_url.h +++ b/xs_url.h @@ -109,7 +109,7 @@ xs_dict *xs_multipart_form_data(const char *payload, int p_size, const char *hea boundary = xs_dup(xs_list_get(l1, 1)); /* Tokodon sends the boundary header with double quotes surrounded */ - if (xs_starts_and_ends("\"", boundary, "\"") != 0) + if (xs_between("\"", boundary, "\"") != 0) boundary = xs_strip_chars_i(boundary, "\""); boundary = xs_fmt("--%s", boundary); -- cgit v1.2.3