From a156722744a8baea6f70e648d47b22a193cae7bb Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 7 Dec 2022 18:17:23 +0000 Subject: [PATCH] LibWeb/Fetch: Update spec comment to decode bytes to string This is a change in the Fetch spec. See: https://github.com/whatwg/fetch/commit/a04d096 --- Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp index 127e6c548e..422d80d38c 100644 --- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp +++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/HTTP/Headers.cpp @@ -438,7 +438,7 @@ bool is_cors_safelisted_request_header(Header const& header) if (any_of(value.span(), is_cors_unsafe_request_header_byte)) return false; - // 2. Let mimeType be the result of parsing value. + // 2. Let mimeType be the result of parsing the result of isomorphic decoding value. auto mime_type = MimeSniff::MimeType::from_string(StringView { value }); // 3. If mimeType is failure, then return false.