summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar default2024-06-08 21:08:12 +0200
committerGravatar default2024-06-08 21:08:12 +0200
commitbbb365e81be704d4afc93469c15f7396d56f56fa (patch)
tree2ede1c87b2e3d1135d36f539a41b9621a9665354
parentVersion 2.54 RELEASED. (diff)
downloadpenes-snac2-bbb365e81be704d4afc93469c15f7396d56f56fa.tar.gz
penes-snac2-bbb365e81be704d4afc93469c15f7396d56f56fa.tar.xz
penes-snac2-bbb365e81be704d4afc93469c15f7396d56f56fa.zip
Many Mastodon apps don't send Content-Type in DELETE, so ignore it.
-rw-r--r--mastoapi.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/mastoapi.c b/mastoapi.c
index bc86f6d..84569e1 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -3008,9 +3008,6 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
3008 xs *args = NULL; 3008 xs *args = NULL;
3009 const char *i_ctype = xs_dict_get(req, "content-type"); 3009 const char *i_ctype = xs_dict_get(req, "content-type");
3010 3010
3011 if (i_ctype == NULL)
3012 return 0;
3013
3014 if (i_ctype && xs_startswith(i_ctype, "application/json")) { 3011 if (i_ctype && xs_startswith(i_ctype, "application/json")) {
3015 if (!xs_is_null(payload)) 3012 if (!xs_is_null(payload))
3016 args = xs_json_loads(payload); 3013 args = xs_json_loads(payload);