mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-09 17:44:56 +09:00
LibHTTP+LibWeb: Accept Brotli encoded responses
This commit is contained in:
parent
d6a5b11f04
commit
7278ad761e
Notes:
sideshowbarker
2024-07-17 10:43:28 +09:00
Author: https://github.com/msvisser
Commit: 7278ad761e
Pull-request: https://github.com/SerenityOS/serenity/pull/13384
Reviewed-by: https://github.com/Lubrsi
Reviewed-by: https://github.com/alimpfard
Reviewed-by: https://github.com/creator1creeper1
Reviewed-by: https://github.com/kleinesfilmroellchen ✅
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