Index: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
diff --git a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
index d86b35b94d482042a9dd30c287783a6c496416b9..b15509403e46222772c2a76193fa02c26c4dad7c 100644 |
--- a/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
+++ b/third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
@@ -812,7 +812,7 @@ void XMLHttpRequest::send(Blob* body, ExceptionState& exceptionState) { |
if (areMethodAndURLValidForSend()) { |
if (getRequestHeader(HTTPNames::Content_Type).isEmpty()) { |
const String& blobType = body->type(); |
- if (!blobType.isEmpty() && isValidContentType(blobType)) { |
+ if (!blobType.isEmpty() && ParsedContentType::isValid(blobType)) { |
setRequestHeaderInternal(HTTPNames::Content_Type, |
AtomicString(blobType)); |
} |