mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2024-06-10 09:19:34 +00:00
update comment
This commit is contained in:
parent
2d98d9466a
commit
1e59dd80ee
|
@ -45,9 +45,9 @@ pub struct FetchObjectResponse<Kind> {
|
||||||
/// [Error::RequestLimit]. This prevents denial of service attacks where an attack triggers
|
/// [Error::RequestLimit]. This prevents denial of service attacks where an attack triggers
|
||||||
/// infinite, recursive fetching of data.
|
/// infinite, recursive fetching of data.
|
||||||
///
|
///
|
||||||
/// The `Accept` header will be set to the content of [`FEDERATION_CONTENT_TYPE`]. It ensures that
|
/// The `Accept` header will be set to the content of [`FEDERATION_CONTENT_TYPE`]. When parsing the
|
||||||
/// the response has a valid `Content-Type` header as defined by ActivityPub, to prevent security
|
/// response it ensures that it has a valid `Content-Type` header as defined by ActivityPub, to
|
||||||
/// vulnerabilities like [this one](https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36).
|
/// prevent security vulnerabilities like [this one](https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36).
|
||||||
/// Additionally it checks that the `id` field is identical to the fetch URL (after redirects).
|
/// Additionally it checks that the `id` field is identical to the fetch URL (after redirects).
|
||||||
pub async fn fetch_object_http<T: Clone, Kind: DeserializeOwned>(
|
pub async fn fetch_object_http<T: Clone, Kind: DeserializeOwned>(
|
||||||
url: &Url,
|
url: &Url,
|
||||||
|
|
Loading…
Reference in a new issue