From 395f80bdc40115087e8e4eb8fdbed8520df54863 Mon Sep 17 00:00:00 2001 From: default Date: Sun, 16 Oct 2022 19:00:17 +0200 Subject: Added support for HEAD methods. Mastodon uses them when it founds an attachment. --- activitypub.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activitypub.c') diff --git a/activitypub.c b/activitypub.c index fb790d5..7ac4c5f 100644 --- a/activitypub.c +++ b/activitypub.c @@ -880,7 +880,7 @@ int activitypub_get_handler(d_char *req, char *q_path, xs *msg = NULL; if (accept == NULL) - return 400; + return 0; if (xs_str_in(accept, "application/activity+json") == -1 && xs_str_in(accept, "application/ld+json") == -1) -- cgit v1.2.3