Index: Source/core/fetch/CrossOriginAccessControl.cpp |
diff --git a/Source/core/fetch/CrossOriginAccessControl.cpp b/Source/core/fetch/CrossOriginAccessControl.cpp |
index 8e9690df0536023cbba490a851bcd7caa71f528d..b9433ac057ac9715de2dbba777664ea0ecd75d38 100644 |
--- a/Source/core/fetch/CrossOriginAccessControl.cpp |
+++ b/Source/core/fetch/CrossOriginAccessControl.cpp |
@@ -41,7 +41,7 @@ bool isOnAccessControlSimpleRequestMethodWhitelist(const String& method) |
return method == "GET" || method == "HEAD" || method == "POST"; |
} |
-bool isOnAccessControlSimpleRequestHeaderWhitelist(const String& name, const String& value) |
+bool isOnAccessControlSimpleRequestHeaderWhitelist(const AtomicString& name, const AtomicString& value) |
{ |
if (equalIgnoringCase(name, "accept") |
|| equalIgnoringCase(name, "accept-language") |
@@ -52,7 +52,7 @@ bool isOnAccessControlSimpleRequestHeaderWhitelist(const String& name, const Str |
// Preflight is required for MIME types that can not be sent via form submission. |
if (equalIgnoringCase(name, "content-type")) { |
- String mimeType = extractMIMETypeFromMediaType(value); |
+ AtomicString mimeType = extractMIMETypeFromMediaType(value); |
return equalIgnoringCase(mimeType, "application/x-www-form-urlencoded") |
|| equalIgnoringCase(mimeType, "multipart/form-data") |
|| equalIgnoringCase(mimeType, "text/plain"); |