Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp

Issue 2704153002: ParsedContentType refactoring (Closed)
Patch Set: fix Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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));
}

Powered by Google App Engine
This is Rietveld 408576698