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

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

Issue 662383002: Remove FormData::alwaysStream() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 1 month 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
« no previous file with comments | « no previous file | Source/platform/network/FormData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/xmlhttprequest/XMLHttpRequest.cpp
diff --git a/Source/core/xmlhttprequest/XMLHttpRequest.cpp b/Source/core/xmlhttprequest/XMLHttpRequest.cpp
index 6209a4dc00f108af12194702c1c285a6847a06ad..3494b56af08c4942c249daae0482aed15b8680bc 100644
--- a/Source/core/xmlhttprequest/XMLHttpRequest.cpp
+++ b/Source/core/xmlhttprequest/XMLHttpRequest.cpp
@@ -696,8 +696,6 @@ void XMLHttpRequest::send(Document* document, ExceptionState& exceptionState)
// FIXME: This should use value of document.inputEncoding to determine the encoding to use.
httpBody = FormData::create(UTF8Encoding().encode(body, WTF::EntitiesForUnencodables));
- if (m_upload)
- httpBody->setAlwaysStream(true);
}
createRequest(httpBody.release(), exceptionState);
@@ -722,8 +720,6 @@ void XMLHttpRequest::send(const String& body, ExceptionState& exceptionState)
}
httpBody = FormData::create(UTF8Encoding().encode(body, WTF::EntitiesForUnencodables));
- if (m_upload)
- httpBody->setAlwaysStream(true);
}
createRequest(httpBody.release(), exceptionState);
@@ -812,8 +808,6 @@ void XMLHttpRequest::sendBytesData(const void* data, size_t length, ExceptionSta
if (areMethodAndURLValidForSend()) {
httpBody = FormData::create(data, length);
- if (m_upload)
- httpBody->setAlwaysStream(true);
}
createRequest(httpBody.release(), exceptionState);
« no previous file with comments | « no previous file | Source/platform/network/FormData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698