Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: chrome/browser/extensions/extension_webrequest_api.cc

Issue 7048010: Fix onBeforeSendHeaders regression: we were sending {name: name} for every (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/events/test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_webrequest_api.cc
diff --git a/chrome/browser/extensions/extension_webrequest_api.cc b/chrome/browser/extensions/extension_webrequest_api.cc
index 63ddd3e212000e8c0192e2366754e4cb6845e680..19e9f2b83b526e0c49e648dd93cd5779bd98b483 100644
--- a/chrome/browser/extensions/extension_webrequest_api.cc
+++ b/chrome/browser/extensions/extension_webrequest_api.cc
@@ -161,7 +161,7 @@ ListValue* GetRequestHeadersList(const net::HttpRequestHeaders* headers) {
for (net::HttpRequestHeaders::Iterator it(*headers); it.GetNext(); ) {
DictionaryValue* header = new DictionaryValue();
header->SetString(keys::kHeaderNameKey, it.name());
- header->SetString(keys::kHeaderValueKey, it.name());
+ header->SetString(keys::kHeaderValueKey, it.value());
headers_value->Append(header);
}
}
« no previous file with comments | « no previous file | chrome/test/data/extensions/api_test/webrequest/events/test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698