Index: Source/core/xmlhttprequest/XMLHttpRequest.cpp |
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
index 06aef4ff7efaf20ba5cf6361ae6551a708d2d55a..8f73f6d5f59a46896b09df1c5b0819e457f62b01 100644 |
--- a/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.cpp |
@@ -437,7 +437,7 @@ Blob* XMLHttpRequest::responseBlob() |
if (m_binaryResponseBuilder && m_binaryResponseBuilder->size()) { |
size = m_binaryResponseBuilder->size(); |
blobData->appendBytes(m_binaryResponseBuilder->data(), size); |
- blobData->setContentType(finalResponseMIMETypeWithFallback()); |
+ blobData->setContentType(finalResponseMIMETypeWithFallback().lower()); |
m_binaryResponseBuilder.clear(); |
} |
m_responseBlob = Blob::create(BlobDataHandle::create(blobData.release(), size)); |
@@ -1517,7 +1517,7 @@ PassRefPtr<BlobDataHandle> XMLHttpRequest::createBlobDataHandleFromResponse() |
// FIXME: finalResponseMIMETypeWithFallback() defaults to |
// text/xml which may be incorrect. Replace it with |
// finalResponseMIMEType() after compatibility investigation. |
- blobData->setContentType(finalResponseMIMETypeWithFallback()); |
+ blobData->setContentType(finalResponseMIMETypeWithFallback().lower()); |
} |
return BlobDataHandle::create(blobData.release(), m_lengthDownloadedToFile); |
} |