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..98d47e7fd8b5436ca0ea5a49d544f8b0e1593bd4 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(blobType).isValid()) { |
setRequestHeaderInternal(HTTPNames::Content_Type, |
AtomicString(blobType)); |
} |