summaryrefslogtreecommitdiff
path: root/activitypub.c
diff options
context:
space:
mode:
authorGravatar default2022-10-16 19:00:17 +0200
committerGravatar default2022-10-16 19:00:17 +0200
commit395f80bdc40115087e8e4eb8fdbed8520df54863 (patch)
treecb6f0132d3738456a02b5d89099dde3d7345201e /activitypub.c
parentAttachments are now starting to get real. (diff)
downloadsnac2-395f80bdc40115087e8e4eb8fdbed8520df54863.tar.gz
snac2-395f80bdc40115087e8e4eb8fdbed8520df54863.tar.xz
snac2-395f80bdc40115087e8e4eb8fdbed8520df54863.zip
Added support for HEAD methods.
Mastodon uses them when it founds an attachment.
Diffstat (limited to 'activitypub.c')
-rw-r--r--activitypub.c2
1 files changed, 1 insertions, 1 deletions
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,
880 xs *msg = NULL; 880 xs *msg = NULL;
881 881
882 if (accept == NULL) 882 if (accept == NULL)
883 return 400; 883 return 0;
884 884
885 if (xs_str_in(accept, "application/activity+json") == -1 && 885 if (xs_str_in(accept, "application/activity+json") == -1 &&
886 xs_str_in(accept, "application/ld+json") == -1) 886 xs_str_in(accept, "application/ld+json") == -1)