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:
parent
d6a5b11f04
commit
7278ad761e
2 changed files with 33 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue