Re: [whatwg/fetch] Uploading a Request made from a ReadableStream body (#425)

annevk commented on this pull request.



>   <li>
-  <p>Let <var>httpRequest</var> be <var>request</var> if
-  <var>request</var>'s <a for=request>window</a> is "<code>no-window</code>"
-  and <var>request</var>'s <a for=request>redirect mode</a> is
-  "<code>error</code>", and the result of <a lt=clone for=request>cloning</a>
-  <var>request</var> otherwise.
+  <p>Otherwise, if <var>request</var>'s <a for=request>body</a> is null, then set
+  <var>httpRequest</var> to a copy of <var>request</var> except for its <a for=request>body</a>.

It seems you can combine this step with the next step. And only if request's body is non-null do the dance of moving the pointer across.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/425#pullrequestreview-13291374

Received on Friday, 16 December 2016 08:36:58 UTC