Index: third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
diff --git a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
index 99a69abd80c5d91dbfa50940d6349e3128c9d305..8a75b0035175a2da7a08f846bad2f26b48bac2ae 100644 |
--- a/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
+++ b/third_party/WebKit/Source/core/frame/csp/CSPDirectiveList.cpp |
@@ -809,7 +809,7 @@ bool CSPDirectiveList::shouldSendCSPHeader(Resource::Type type) const { |
// directive-list = [ directive *( ";" [ directive ] ) ] |
// |
void CSPDirectiveList::parse(const UChar* begin, const UChar* end) { |
- m_header = String(begin, end - begin); |
+ m_header = String(begin, end - begin).stripWhiteSpace(); |
if (begin == end) |
return; |