From 9da5b09ec6fab6de6155b3e770aeac23d8611e8c Mon Sep 17 00:00:00 2001 From: alemi Date: Thu, 21 Mar 2024 19:55:55 +0100 Subject: [PATCH] fix: need the full content-type... --- src/activitypub/jsonld.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/activitypub/jsonld.rs b/src/activitypub/jsonld.rs index 664f37fa..9a67aa3f 100644 --- a/src/activitypub/jsonld.rs +++ b/src/activitypub/jsonld.rs @@ -28,7 +28,9 @@ impl LD for serde_json::Value { pub struct JsonLD(pub T); impl IntoResponse for JsonLD { fn into_response(self) -> Response { - // headers body - ([("Content-Type", "application/ld+json")], axum::Json(self.0)).into_response() + ( + [("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"")], + axum::Json(self.0) + ).into_response() } }