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

Unified Diff: loader/FrameLoader.cpp

Issue 220010: Store non-standard HTTP headers in history. (WebKit side) Base URL: http://svn.webkit.org/repository/webkit/trunk/WebCore/
Patch Set: '' Created 11 years, 3 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 | « history/HistoryItem.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: loader/FrameLoader.cpp
===================================================================
--- loader/FrameLoader.cpp (revision 48585)
+++ loader/FrameLoader.cpp (working copy)
@@ -4658,6 +4658,13 @@
action = NavigationAction(itemOriginalURL, loadType, false);
}
+
+ const HTTPHeaderMap& headerMap = item->httpHeaderFields();
+ if (headerMap.size() > 0) {
+ HTTPHeaderMap::const_iterator it = headerMap.begin();
+ for (; it != headerMap.end(); ++it)
+ request.addHTTPHeaderField(it->first, it->second);
+ }
if (!addedExtraFields)
addExtraFieldsToRequest(request, m_loadType, true, formData);
« no previous file with comments | « history/HistoryItem.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698