Browse Source

feat: accept-encoding zstd (#43300)

* fix: accept-encoding zstd

Co-authored-by: Charles Kerr <[email protected]>

* Update shell/browser/net/system_network_context_manager.cc

Co-authored-by: Sam Maddock <[email protected]>

Co-authored-by: Charles Kerr <[email protected]>

* chore: make lint happy

Co-authored-by: Charles Kerr <[email protected]>

---------

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Charles Kerr <[email protected]>
trop[bot] 8 months ago
parent
commit
7123b313cf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      shell/browser/net/system_network_context_manager.cc

+ 2 - 0
shell/browser/net/system_network_context_manager.cc

@@ -198,6 +198,8 @@ SystemNetworkContextManager::CreateDefaultNetworkContextParams() {
 void SystemNetworkContextManager::ConfigureDefaultNetworkContextParams(
     network::mojom::NetworkContextParams* network_context_params) {
   network_context_params->enable_brotli = true;
+  network_context_params->enable_zstd =
+      base::FeatureList::IsEnabled(net::features::kZstdContentEncoding);
 
   network_context_params->enable_referrers = true;