From 1e59dd80ee753626cb6cec07212ca9ece91f8ebf Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Fri, 1 Mar 2024 10:49:57 +0100 Subject: [PATCH] update comment --- src/fetch/mod.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fetch/mod.rs b/src/fetch/mod.rs index d6f52bc..e543c9d 100644 --- a/src/fetch/mod.rs +++ b/src/fetch/mod.rs @@ -45,9 +45,9 @@ pub struct FetchObjectResponse { /// [Error::RequestLimit]. This prevents denial of service attacks where an attack triggers /// infinite, recursive fetching of data. /// -/// The `Accept` header will be set to the content of [`FEDERATION_CONTENT_TYPE`]. It ensures that -/// the response has a valid `Content-Type` header as defined by ActivityPub, to prevent security -/// vulnerabilities like [this one](https://github.com/mastodon/mastodon/security/advisories/GHSA-jhrq-qvrm-qr36). +/// The `Accept` header will be set to the content of [`FEDERATION_CONTENT_TYPE`]. When parsing the +/// response it ensures that it has a valid `Content-Type` header as defined by ActivityPub, to +/// 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). pub async fn fetch_object_http( url: &Url,