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

annevk commented on this pull request.



> +  <p class="note no-backref"><var>request</var> can be reused with redirects, authentication, and
+  proxy authentication.
+
+ <li>
+  <p>Otherwise, run these substeps:
+
+  <ol>
+   <li><p>Set <var>httpRequest</var> to a copy of <var>request</var> except for its
+   <a for=request>body</a>.
+
+   <li><p>Set <var>httpRequest</var>'s <a for=request>body</a> to <var>request</var>'s
+   <a for=request>body</a>.
+
+   <li><p>Set <var>request</var>'s <a for=request>body</a> to a new <a for=/>body</a> whose
+   <a for=body>stream</a> is null and whose <a for=body>source</a> is <var>httpRequest</var>'s
+   <a for=request>body</a>'s <a for=body>source</a>.

I think it's worth pointing out here why the request isn't simply cloned.

-- 
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-13293869

Received on Friday, 16 December 2016 08:57:05 UTC