commit bbb365e

default  ·  2024-06-08 19:08:12 +0000 UTC
parent e026c2b
Many Mastodon apps don't send Content-Type in DELETE, so ignore it.
1 files changed,  +0, -3
+0, -3
 1@@ -3008,9 +3008,6 @@ int mastoapi_delete_handler(const xs_dict *req, const char *q_path,
 2     xs *args      = NULL;
 3     const char *i_ctype = xs_dict_get(req, "content-type");
 4 
 5-    if (i_ctype == NULL)
 6-        return 0;
 7-
 8     if (i_ctype && xs_startswith(i_ctype, "application/json")) {
 9         if (!xs_is_null(payload))
10             args = xs_json_loads(payload);