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

Unified Diff: third_party/WebKit/Source/modules/fetch/RequestInit.cpp

Issue 1998563002: Fix URLSearchParams to use the right encoding algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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/modules/fetch/RequestInit.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
index 885686387f0ede148859d55fbb58e50ef32db394..3fcbcbc8ad05fd595bb5c7eef60b17a03f04318f 100644
--- a/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
+++ b/third_party/WebKit/Source/modules/fetch/RequestInit.cpp
@@ -124,7 +124,7 @@ RequestInit::RequestInit(ExecutionContext* context, const Dictionary& options, E
contentType = AtomicString("multipart/form-data; boundary=") + formData->boundary().data();
body = FetchFormDataConsumerHandle::create(context, formData.release());
} else if (V8URLSearchParams::hasInstance(v8Body, isolate)) {
- RefPtr<EncodedFormData> formData = V8URLSearchParams::toImpl(v8::Local<v8::Object>::Cast(v8Body))->encodeFormData();
+ RefPtr<EncodedFormData> formData = V8URLSearchParams::toImpl(v8::Local<v8::Object>::Cast(v8Body))->toEncodedFormData();
contentType = AtomicString("application/x-www-form-urlencoded;charset=UTF-8");
body = FetchFormDataConsumerHandle::create(context, formData.release());
} else if (v8Body->IsString()) {

Powered by Google App Engine
This is Rietveld 408576698