summaryrefslogtreecommitdiff
path: root/xs_url.h
diff options
context:
space:
mode:
authorGravatar Giacomo Tesio2024-12-05 22:53:40 +0100
committerGravatar Giacomo Tesio2024-12-05 22:53:40 +0100
commitbd74ffda5b25cc07e8d559815e027c8dab3b9d73 (patch)
tree00725a5d5f53ed421b923de6fc1892c58815cc16 /xs_url.h
parentMakefile: enable static compilation with musl (diff)
parentUpdated RELEASE_NOTES. (diff)
downloadsnac2-bd74ffda5b25cc07e8d559815e027c8dab3b9d73.tar.gz
snac2-bd74ffda5b25cc07e8d559815e027c8dab3b9d73.tar.xz
snac2-bd74ffda5b25cc07e8d559815e027c8dab3b9d73.zip
Merge branch 'master' into build-with-musl
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
106 if (xs_list_len(l1) != 2) 106 if (xs_list_len(l1) != 2)
107 return NULL; 107 return NULL;
108 108
109 boundary = xs_dup(xs_list_get(l1, 1)); 109 xs *t_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_between("\"", boundary, "\"") != 0) 112 if (xs_between("\"", t_boundary, "\"") != 0)
113 boundary = xs_strip_chars_i(boundary, "\""); 113 t_boundary = xs_strip_chars_i(t_boundary, "\"");
114 114
115 boundary = xs_fmt("--%s", boundary); 115 boundary = xs_fmt("--%s", t_boundary);
116 } 116 }
117 117
118 bsz = strlen(boundary); 118 bsz = strlen(boundary);