fix header

This commit is contained in:
Felix Ableitner 2024-03-01 10:51:13 +01:00
parent 1e59dd80ee
commit a41288fa0a

View file

@ -55,7 +55,7 @@ pub async fn fetch_object_http<T: Clone, Kind: DeserializeOwned>(
) -> Result<FetchObjectResponse<Kind>, Error> {
static CONTENT_TYPE: HeaderValue = HeaderValue::from_static(FEDERATION_CONTENT_TYPE);
static ALT_CONTENT_TYPE: HeaderValue = HeaderValue::from_static(
r#"application/ld+json; profile="https://www.w3.org/ns/activitystreams"#,
r#"application/ld+json; profile="https://www.w3.org/ns/activitystreams""#,
);
let res = fetch_object_http_with_accept(url, data, &CONTENT_TYPE).await?;