Repository: electron/electron (language: cpp)

Issue:
[Bug]: zstd is not enabled in accept-encoding
### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

31.3.1

### What operating system(s) are you using?

Windows

### Operating System Version

any

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

zstd is a supported content encoding method, and the accept-encoding should be "gzip, deflate, br, zstd"

<img width="920" alt="截屏2024-07-31 06 43 43" src="https://github.com/user-attachments/assets/11d536fd-f7bd-4a31-93cb-36960de0dfea">


### Actual Behavior

it's not enabled even it's forcely enabled it in network conditions panel, the accept-encoding header is still "gzip, deflate, br".
<img width="812" alt="截屏2024-07-31 06 40 16" src="https://github.com/user-attachments/assets/c47a5f8a-9393-40a2-a1fb-ef81695a9be5">


### Testcase Gist URL

_No response_

### Additional Information

Just start the default electron fiddle, open the dev tools and set location.href to any site for example 'https://www.google.com/' then check the request headers in network panel.


Discussion / hints:

Fix patch:
diff --git a/shell/browser/net/system_network_context_manager.cc b/shell/browser/net/system_network_context_manager.cc
index be839e174243c..8b8beac393cfb 100644
--- a/shell/browser/net/system_network_context_manager.cc
+++ b/shell/browser/net/system_network_context_manager.cc
@@ -195,6 +195,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;
 


Test patch: