mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
LibWeb: Advertise to servers that we support gzip encoding
We've had gzip support for a while now, but it never really got used because we never advertised it.
This commit is contained in:
parent
397049aae8
commit
62a74bf282
1 changed files with 1 additions and 0 deletions
|
@ -158,6 +158,7 @@ void ResourceLoader::load(const LoadRequest& request, Function<void(const ByteBu
|
|||
if (url.protocol() == "http" || url.protocol() == "https" || url.protocol() == "gemini") {
|
||||
HashMap<String, String> headers;
|
||||
headers.set("User-Agent", m_user_agent);
|
||||
headers.set("Accept-Encoding", "gzip");
|
||||
|
||||
for (auto& it : request.headers()) {
|
||||
headers.set(it.key, it.value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue