Index: Source/modules/serviceworkers/FetchHeaderList.cpp |
diff --git a/Source/modules/serviceworkers/FetchHeaderList.cpp b/Source/modules/serviceworkers/FetchHeaderList.cpp |
index 33b85650c9aa6f36a2ba19e45bad6a8182aa6802..7c1128f00edfe1b01216a31d7cb00050b13954fd 100644 |
--- a/Source/modules/serviceworkers/FetchHeaderList.cpp |
+++ b/Source/modules/serviceworkers/FetchHeaderList.cpp |
@@ -17,6 +17,15 @@ PassRefPtr<FetchHeaderList> FetchHeaderList::create() |
return adoptRef(new FetchHeaderList()); |
} |
+PassRefPtr<FetchHeaderList> FetchHeaderList::createCopy() |
+{ |
+ RefPtr<FetchHeaderList> list(create()); |
jochen (gone - plz use gerrit)
2014/07/07 07:15:33
please copy the referrer policy together with the
horo
2014/07/07 09:31:38
FetchHeaderList don't have the referrer header bec
|
+ for (size_t i = 0; i < m_headerList.size(); ++i) { |
+ list->append(m_headerList[i]->first, m_headerList[i]->second); |
+ } |
+ return list.release(); |
+} |
+ |
FetchHeaderList::FetchHeaderList() |
{ |
} |
@@ -159,7 +168,7 @@ bool FetchHeaderList::isForbiddenHeaderName(const String& name) |
// `Transfer-Encoding`, `Upgrade`, `User-Agent`, `Via` |
// or starts with `Proxy-` or `Sec-` (including when it is just `Proxy-` or |
// `Sec-`)." |
- return !XMLHttpRequest::isAllowedHTTPHeader(name); |
+ return !XMLHttpRequest::isAllowedHTTPHeader(name) || equalIgnoringCase(name, "DNT"); |
} |
bool FetchHeaderList::isForbiddenResponseHeaderName(const String& name) |