From c12c6fd5ea8ce6901b4263993f4b17747982c170 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Mon, 24 Oct 2022 09:17:52 +0100 Subject: [PATCH] LibWeb: Fix typo in Fetch::Infrastructure::Request::add_range_header() --- .../Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.cpp | 2 +- Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.cpp b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.cpp index 3f5bfd31d3..a6705be4c0 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.cpp @@ -223,7 +223,7 @@ WebIDL::ExceptionOr> Request::clone() const } // https://fetch.spec.whatwg.org/#concept-request-add-range-header -ErrorOr Request::add_range_reader(u64 first, Optional const& last) +ErrorOr Request::add_range_header(u64 first, Optional const& last) { // To add a range header to a request request, with an integer first, and an optional integer last, run these steps: diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h index ae99aac9e0..a858ea7c6c 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Requests.h @@ -294,7 +294,7 @@ public: [[nodiscard]] WebIDL::ExceptionOr> clone() const; - [[nodiscard]] ErrorOr add_range_reader(u64 first, Optional const& last); + [[nodiscard]] ErrorOr add_range_header(u64 first, Optional const& last); [[nodiscard]] bool cross_origin_embedder_policy_allows_credentials() const;