Reset whole headers when requestHeaders is set
This commit is contained in:
parent
6aa3464aad
commit
e96f89133c
1 changed files with 1 additions and 0 deletions
|
@ -154,6 +154,7 @@ void ReadFromResponseObject(const base::DictionaryValue& response,
|
|||
net::HttpRequestHeaders* headers) {
|
||||
const base::DictionaryValue* dict;
|
||||
if (response.GetDictionary("requestHeaders", &dict)) {
|
||||
headers->Clear();
|
||||
for (base::DictionaryValue::Iterator it(*dict);
|
||||
!it.IsAtEnd();
|
||||
it.Advance()) {
|
||||
|
|
Loading…
Reference in a new issue