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

Unified Diff: third_party/WebKit/Source/platform/network/FormDataEncoder.cpp

Issue 2687863002: Fix enctype=text/plain implementation (Closed)
Patch Set: Fix typo 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/misc/resources/form-post-textplain.php ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
diff --git a/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp b/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
index 47cb5314c0c7dd9593c8887d4e6d542e0a58568e..393de674c49407d726a08dee3e8abb54bb9f4502 100644
--- a/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
+++ b/third_party/WebKit/Source/platform/network/FormDataEncoder.cpp
@@ -189,11 +189,10 @@ void FormDataEncoder::addKeyValuePairAsFormData(
EncodedFormData::EncodingType encodingType,
Mode mode) {
if (encodingType == EncodedFormData::TextPlain) {
- if (!buffer.isEmpty())
- append(buffer, "\r\n");
append(buffer, key);
append(buffer, '=');
append(buffer, value);
+ append(buffer, "\r\n");
} else {
if (!buffer.isEmpty())
append(buffer, '&');
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/misc/resources/form-post-textplain.php ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698