summaryrefslogtreecommitdiff
path: root/xs_url.h
diff options
context:
space:
mode:
authorGravatar default2024-08-05 18:39:15 +0200
committerGravatar default2024-08-05 18:39:15 +0200
commit88fc843d3e9c31d50afbf1554344df05314931d3 (patch)
tree93adbc1b8a9b4388a79cb88a021f05461c88ec05 /xs_url.h
parentTweaked unveil() / pledge() to deal with UNIX sockets. (diff)
downloadpenes-snac2-88fc843d3e9c31d50afbf1554344df05314931d3.tar.gz
penes-snac2-88fc843d3e9c31d50afbf1554344df05314931d3.tar.xz
penes-snac2-88fc843d3e9c31d50afbf1554344df05314931d3.zip
Use xs_between() where applicable.
Diffstat (limited to 'xs_url.h')
-rw-r--r--xs_url.h2
1 files changed, 1 insertions, 1 deletions
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
109 boundary = xs_dup(xs_list_get(l1, 1)); 109 boundary = xs_dup(xs_list_get(l1, 1));
110 110
111 /* Tokodon sends the boundary header with double quotes surrounded */ 111 /* Tokodon sends the boundary header with double quotes surrounded */
112 if (xs_starts_and_ends("\"", boundary, "\"") != 0) 112 if (xs_between("\"", boundary, "\"") != 0)
113 boundary = xs_strip_chars_i(boundary, "\""); 113 boundary = xs_strip_chars_i(boundary, "\"");
114 114
115 boundary = xs_fmt("--%s", boundary); 115 boundary = xs_fmt("--%s", boundary);