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

Unified Diff: third_party/WebKit/Source/core/loader/FormSubmission.cpp

Issue 2415373002: Loading: bulk style errors fix in core/loader (Closed)
Patch Set: Created 4 years, 2 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/loader/FormSubmission.cpp
diff --git a/third_party/WebKit/Source/core/loader/FormSubmission.cpp b/third_party/WebKit/Source/core/loader/FormSubmission.cpp
index b434ccaed2380783c232ddbbf049ae81c517a6cf..cce84e6e60beda6572b483db74a3107e1594f4db 100644
--- a/third_party/WebKit/Source/core/loader/FormSubmission.cpp
+++ b/third_party/WebKit/Source/core/loader/FormSubmission.cpp
@@ -296,11 +296,12 @@ FrameLoadRequest FormSubmission::createFrameLoadRequest(
frameRequest.resourceRequest().setHTTPBody(m_formData);
// construct some user headers if necessary
- if (m_boundary.isEmpty())
+ if (m_boundary.isEmpty()) {
frameRequest.resourceRequest().setHTTPContentType(m_contentType);
- else
+ } else {
frameRequest.resourceRequest().setHTTPContentType(
m_contentType + "; boundary=" + m_boundary);
+ }
}
frameRequest.resourceRequest().setURL(requestURL());

Powered by Google App Engine
This is Rietveld 408576698