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

Unified Diff: Source/modules/fetch/Request.cpp

Issue 1053503002: [Fetch] Response.clone should tee the body stream. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 | « Source/modules/fetch/Body.cpp ('k') | Source/modules/fetch/Response.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/fetch/Request.cpp
diff --git a/Source/modules/fetch/Request.cpp b/Source/modules/fetch/Request.cpp
index cb98b1a691c9ee5eb766dcdba4199861fa2be400..9d58ec8a8ad4d3c3babbf26e690863c707aee1b7 100644
--- a/Source/modules/fetch/Request.cpp
+++ b/Source/modules/fetch/Request.cpp
@@ -51,7 +51,7 @@ Request* Request::createRequestWithRequestOrString(ExecutionContext* context, Re
return 0;
}
// "2. Set input's used flag."
- inputRequest->setBodyUsed();
+ inputRequest->lockBody(PassBody);
}
// "2. Let |request| be |input|'s associated request, if |input| is a
@@ -347,7 +347,7 @@ Request* Request::clone(ExceptionState& exceptionState) const
FetchRequestData* Request::passRequestData()
{
ASSERT(!bodyUsed());
- setBodyUsed();
+ lockBody(PassBody);
return m_request->pass();
}
« no previous file with comments | « Source/modules/fetch/Body.cpp ('k') | Source/modules/fetch/Response.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698