diff options
| author | 2024-06-08 21:08:12 +0200 | |
|---|---|---|
| committer | 2024-06-08 21:08:12 +0200 | |
| commit | bbb365e81be704d4afc93469c15f7396d56f56fa (patch) | |
| tree | 2ede1c87b2e3d1135d36f539a41b9621a9665354 | |
| parent | Version 2.54 RELEASED. (diff) | |
| download | penes-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.c | 3 |
1 files changed, 0 insertions, 3 deletions
| @@ -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); |