fix: move report_raw_headers to TrustedParams (#36725)
* fix: move report_raw_headers to TrustedParams * Update electron_api_url_loader.cc * missed a copy constructor
This commit is contained in:
parent
32288ac9c5
commit
9b8b8f5880
2 changed files with 62 additions and 53 deletions
|
@ -280,7 +280,7 @@ SimpleURLLoaderWrapper::SimpleURLLoaderWrapper(
|
|||
// Chromium filters headers using browser rules, while for net module we have
|
||||
// every header passed. The following setting will allow us to capture the
|
||||
// raw headers in the URLLoader.
|
||||
request->report_raw_headers = true;
|
||||
request->trusted_params->report_raw_headers = true;
|
||||
// SimpleURLLoader wants to control the request body itself. We have other
|
||||
// ideas.
|
||||
auto request_body = std::move(request->request_body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue