1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-03 00:52:12 +00:00

LibHTTP+LibWeb: Accept Brotli encoded responses

This commit is contained in:
Michiel Visser 2022-03-31 21:08:10 +02:00 committed by Andreas Kling
parent d6a5b11f04
commit 7278ad761e
2 changed files with 33 additions and 1 deletions

View file

@ -225,7 +225,7 @@ void ResourceLoader::load(LoadRequest& request, Function<void(ReadonlyBytes, Has
HashMap<String, String> headers;
headers.set("User-Agent", m_user_agent);
headers.set("Accept-Encoding", "gzip, deflate");
headers.set("Accept-Encoding", "gzip, deflate, br");
for (auto& it : request.headers()) {
headers.set(it.key, it.value);