1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 20:28:11 +00:00

LibWeb: Update incorrect Fetch namespaces

Oops, this namespace rename wasn't committed yet.
This commit is contained in:
Linus Groh 2022-07-18 08:14:04 +01:00
parent 58fda93ea2
commit 6619483169
2 changed files with 4 additions and 4 deletions

View file

@ -202,9 +202,9 @@ MimeSniff::MimeType XMLHttpRequest::get_response_mime_type() const
{
// 1. Let mimeType be the result of extracting a MIME type from xhrs responses header list.
// FIXME: Use an actual HeaderList for XHR headers.
Fetch::Infrastructure::HeaderList header_list;
Fetch::HeaderList header_list;
for (auto const& entry : m_response_headers) {
auto header = Fetch::Infrastructure::Header {
auto header = Fetch::Header {
.name = MUST(ByteBuffer::copy(entry.key.bytes())),
.value = MUST(ByteBuffer::copy(entry.value.bytes())),
};
@ -256,7 +256,7 @@ Optional<StringView> XMLHttpRequest::get_final_encoding() const
// https://fetch.spec.whatwg.org/#concept-header-extract-mime-type
// FIXME: This is not only used by XHR, it is also used for multiple things in Fetch.
Optional<MimeSniff::MimeType> XMLHttpRequest::extract_mime_type(Fetch::Infrastructure::HeaderList const& header_list) const
Optional<MimeSniff::MimeType> XMLHttpRequest::extract_mime_type(Fetch::HeaderList const& header_list) const
{
// 1. Let charset be null.
Optional<String> charset;