LibHTTP+RequestServer: Use HTTP::HeaderMap for request headers

No longer just for response headers! The same type is obviously useful
and ergonomic when making requests as well.
This commit is contained in:
Andreas Kling 2024-06-09 13:46:04 +02:00 committed by Andreas Kling
commit 260c5c50ad
Notes: sideshowbarker 2024-07-16 22:58:46 +09:00
20 changed files with 41 additions and 54 deletions

View file

@ -502,7 +502,7 @@ RefPtr<ResourceLoaderConnectorRequest> ResourceLoader::start_network_request(Loa
{
auto proxy = ProxyMappings::the().proxy_for_url(request.url());
HashMap<ByteString, ByteString> headers;
HTTP::HeaderMap headers;
headers.set("User-Agent", m_user_agent.to_byte_string());
headers.set("Accept-Encoding", "gzip, deflate, br");