summaryrefslogtreecommitdiff
path: root/mastoapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'mastoapi.c')
-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,
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);