mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
fix: do not manually parse content-type (#20538)
This commit is contained in:
committed by
John Kleinschmidt
parent
67642312f4
commit
1b2c6a33b3
@@ -123,9 +123,8 @@ network::ResourceResponseHead ToResponseHead(const mate::Dictionary& dict) {
|
||||
}
|
||||
// Some apps are passing content-type via headers, which is not accepted
|
||||
// in NetworkService.
|
||||
if (base::ToLowerASCII(iter.first) == "content-type" &&
|
||||
iter.second.is_string()) {
|
||||
head.mime_type = iter.second.GetString();
|
||||
if (base::ToLowerASCII(iter.first) == "content-type") {
|
||||
head.headers->GetMimeTypeAndCharset(&head.mime_type, &head.charset);
|
||||
has_content_type = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user