summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
authorPaul Wilde <psw@wildefedi01.wildenet.wilde.cloud>2024-01-28 21:07:31 +0000
committerPaul Wilde <psw@wildefedi01.wildenet.wilde.cloud>2024-01-28 21:07:31 +0000
commitf0c46a7c1f6a6ac8273197ec79617f6974a1bc7b (patch)
tree2c8816cdff6e195a4fb7032346007cbfcffc949e /mastoapi.c
parentddfd8aaca9c3d3cb0dccf40580337a65f44413ed (diff)
cleanup
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mastoapi.c b/mastoapi.c
index 4c39854..abeea94 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -2008,10 +2008,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path,
else if (i_ctype && xs_startswith(i_ctype, "application/x-www-form-urlencoded"))
{
// Some apps send form data instead of json so we should cater for those
- if (!xs_is_null(payload)) {
+ if (!xs_is_null(payload)) {
xs *upl = xs_url_dec(payload);
args = xs_url_vars(upl);
- }
+ }
}
else
args = xs_dup(xs_dict_get(req, "p_vars"));