mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-14 17:45:04 +00:00
Many Mastodon apps don't send Content-Type in DELETE, so ignore it.
This commit is contained in:
parent
e026c2b82e
commit
bbb365e81b
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue