mirror of
https://github.com/LemmyNet/activitypub-federation-rust
synced 2024-11-10 06:04:19 +00:00
fmt
This commit is contained in:
parent
87c2906058
commit
c1775abf57
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ pub async fn fetch_object_http<T: Clone, Kind: DeserializeOwned>(
|
||||||
) -> Result<FetchObjectResponse<Kind>, Error> {
|
) -> Result<FetchObjectResponse<Kind>, Error> {
|
||||||
static FETCH_CONTENT_TYPE: HeaderValue = HeaderValue::from_static(FEDERATION_CONTENT_TYPE);
|
static FETCH_CONTENT_TYPE: HeaderValue = HeaderValue::from_static(FEDERATION_CONTENT_TYPE);
|
||||||
const VALID_RESPONSE_CONTENT_TYPES: [&str; 3] = [
|
const VALID_RESPONSE_CONTENT_TYPES: [&str; 3] = [
|
||||||
FEDERATION_CONTENT_TYPE, // lemmy
|
FEDERATION_CONTENT_TYPE, // lemmy
|
||||||
r#"application/ld+json; profile="https://www.w3.org/ns/activitystreams""#, // activitypub standard
|
r#"application/ld+json; profile="https://www.w3.org/ns/activitystreams""#, // activitypub standard
|
||||||
r#"application/activity+json; charset=utf-8"#, // mastodon
|
r#"application/activity+json; charset=utf-8"#, // mastodon
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue