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

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

Issue 2679563002: [WIP] Expose Request.body property
Patch Set: 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/modules/fetch/FormDataBytesConsumer.cpp
diff --git a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
index 0e36d2d7df54c02992f8a87ea94caded250b6b30..4da994c159218afa7fa42619a803a899ae601724 100644
--- a/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
+++ b/third_party/WebKit/Source/modules/fetch/FormDataBytesConsumer.cpp
@@ -40,8 +40,9 @@ class SimpleFormDataBytesConsumer : public BytesConsumer {
m_formData = nullptr;
DCHECK_EQ(m_flattenFormDataOffset, 0u);
}
- if (m_flattenFormDataOffset == m_flattenFormData.size())
+ if (m_flattenFormDataOffset == m_flattenFormData.size()) {
return Result::Done;
+ }
*buffer = m_flattenFormData.data() + m_flattenFormDataOffset;
*available = m_flattenFormData.size() - m_flattenFormDataOffset;
return Result::Ok;

Powered by Google App Engine
This is Rietveld 408576698