diff options
| author | 2024-11-24 18:49:17 +0100 | |
|---|---|---|
| committer | 2024-11-24 18:49:17 +0100 | |
| commit | a5a7ab9ba5b35659148ee6a20ddbd512c5aa53fd (patch) | |
| tree | 92bb0f4b3a6918d458d1e7f14ead310c68934485 /xs_url.h | |
| parent | Fixed bio processing in the public page. (diff) | |
| download | snac2-a5a7ab9ba5b35659148ee6a20ddbd512c5aa53fd.tar.gz snac2-a5a7ab9ba5b35659148ee6a20ddbd512c5aa53fd.tar.xz snac2-a5a7ab9ba5b35659148ee6a20ddbd512c5aa53fd.zip | |
Backport from xs.
Diffstat (limited to 'xs_url.h')
| -rw-r--r-- | xs_url.h | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -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); |