- From: Ben Kelly <notifications@github.com>
- Date: Fri, 20 Mar 2015 06:56:01 -0700
- To: whatwg/streams <streams@noreply.github.com>
Received on Friday, 20 March 2015 13:56:28 UTC
In regards to Response.body changing in Response.clone(), I have a question: Does reading .body() set the bodyUsed flag to prevent Response.clone()? If "yes", then I'm ok with .body being swapped to a different stream. If "no", then how do we prevent something like this: ``` var readPromise = resp.body.read(); var resp2 = resp.clone(); readPromise.then(function(value, done) { // what happens here? does it ever get called? }); ``` --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/streams/pull/302#issuecomment-84021566
Received on Friday, 20 March 2015 13:56:28 UTC