diff options
| author | 2024-01-28 21:07:31 +0000 | |
|---|---|---|
| committer | 2024-01-28 21:07:31 +0000 | |
| commit | f0c46a7c1f6a6ac8273197ec79617f6974a1bc7b (patch) | |
| tree | 2c8816cdff6e195a4fb7032346007cbfcffc949e | |
| parent | cleanup (diff) | |
| download | snac2-f0c46a7c1f6a6ac8273197ec79617f6974a1bc7b.tar.gz snac2-f0c46a7c1f6a6ac8273197ec79617f6974a1bc7b.tar.xz snac2-f0c46a7c1f6a6ac8273197ec79617f6974a1bc7b.zip | |
cleanup
| -rw-r--r-- | mastoapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -2008,10 +2008,10 @@ int mastoapi_post_handler(const xs_dict *req, const char *q_path, | |||
| 2008 | else if (i_ctype && xs_startswith(i_ctype, "application/x-www-form-urlencoded")) | 2008 | else if (i_ctype && xs_startswith(i_ctype, "application/x-www-form-urlencoded")) |
| 2009 | { | 2009 | { |
| 2010 | // Some apps send form data instead of json so we should cater for those | 2010 | // Some apps send form data instead of json so we should cater for those |
| 2011 | if (!xs_is_null(payload)) { | 2011 | if (!xs_is_null(payload)) { |
| 2012 | xs *upl = xs_url_dec(payload); | 2012 | xs *upl = xs_url_dec(payload); |
| 2013 | args = xs_url_vars(upl); | 2013 | args = xs_url_vars(upl); |
| 2014 | } | 2014 | } |
| 2015 | } | 2015 | } |
| 2016 | else | 2016 | else |
| 2017 | args = xs_dup(xs_dict_get(req, "p_vars")); | 2017 | args = xs_dup(xs_dict_get(req, "p_vars")); |