Reset whole headers when requestHeaders is set

This commit is contained in:
Cheng Zhao 2015-12-24 16:59:13 +08:00
parent 6aa3464aad
commit e96f89133c

View file

@ -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()) {