chibipub

experimental activitypub node in C
git clone git://jb55.com/chibipub
Log | Files | Refs | README | LICENSE

commit 2e7e41c8ed2c5374fa5cfdcd0a137bd32b263fab
parent cb03022e9287060b9495fe9c45844e271f4c9df8
Author: William Casarin <jb55@jb55.com>
Date:   Sat,  6 Mar 2021 12:55:54 -0800

accept ld+json

Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Msrc/chibipub.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/chibipub.c b/src/chibipub.c @@ -228,7 +228,8 @@ static inline int is_accept_activity(struct http_req *req) return 0; } - if (!strstr(accept, "application/activity+json")) { + if (!(strstr(accept, "application/activity+json") || + strstr(accept, "application/ld+json"))) { note_error(&req->errs, "not accept: '%s'", accept); return 0; }