fix: Don't sort the headers of ClientRequest (#26134)
This commit is contained in:
parent
2d1bbd2e38
commit
0fc5f18b63
3 changed files with 53 additions and 1 deletions
|
@ -378,7 +378,7 @@ gin::Handle<SimpleURLLoaderWrapper> SimpleURLLoaderWrapper::Create(
|
|||
opts.Get("referrer", &request->referrer);
|
||||
bool credentials_specified =
|
||||
opts.Get("credentials", &request->credentials_mode);
|
||||
std::map<std::string, std::string> extra_headers;
|
||||
std::vector<std::pair<std::string, std::string>> extra_headers;
|
||||
if (opts.Get("extraHeaders", &extra_headers)) {
|
||||
for (const auto& it : extra_headers) {
|
||||
if (!net::HttpUtil::IsValidHeaderName(it.first) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue