snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit bbb365e81be704d4afc93469c15f7396d56f56fa
parent e026c2b82edd224fab435ffcb4d007f888fd634f
Author: default <nobody@localhost>
Date:   Sat,  8 Jun 2024 21:08:12 +0200

Many Mastodon apps don't send Content-Type in DELETE, so ignore it.

Diffstat:
Mmastoapi.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/mastoapi.c b/mastoapi.c @@ -3008,9 +3008,6 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path, xs *args = NULL; const char *i_ctype = xs_dict_get(req, "content-type"); - if (i_ctype == NULL) - return 0; - if (i_ctype && xs_startswith(i_ctype, "application/json")) { if (!xs_is_null(payload)) args = xs_json_loads(payload);