fix: need the full content-type...

This commit is contained in:
əlemi 2024-03-21 19:55:55 +01:00
parent ca5c6c9971
commit 9da5b09ec6
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -28,7 +28,9 @@ impl LD for serde_json::Value {
pub struct JsonLD<T>(pub T);
impl<T: serde::Serialize> IntoResponse for JsonLD<T> {
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()
}
}