From: Cheng Zhao Date: Thu, 24 Dec 2015 08:59:13 +0000 (+0800) Subject: Reset whole headers when requestHeaders is set X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e96f89133c6b2e1b21e8465aeee580b353391985;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Reset whole headers when requestHeaders is set --- diff --git a/atom/browser/net/atom_network_delegate.cc b/atom/browser/net/atom_network_delegate.cc index 228cb58..4f9bc83 100644 --- a/atom/browser/net/atom_network_delegate.cc +++ b/atom/browser/net/atom_network_delegate.cc @@ -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()) {