diff --git a/fetch.bs b/fetch.bs index e4ae6edd1..355a59387 100644 --- a/fetch.bs +++ b/fetch.bs @@ -1001,8 +1001,7 @@ worked on in issue #1156
A body consists of:
A stream (null or a {{ReadableStream}} - object). +
A stream (a {{ReadableStream}} object).
A transmitted bytes (an integer), initially 0. @@ -4105,16 +4104,14 @@ steps. They return a response.
Otherwise:
Set httpRequest to a copy of request except for its - body. - -
Let body be request's body. - -
Set httpRequest's body to body. +
Set httpRequest to a clone of request. -
If body is non-null, then set request's body to - a new body whose stream is null and whose source - is body's source. +
Implementations are encouraged to avoid teeing request's + body's stream when request's + body's source is null as only a single body is needed in + that case. E.g., when request's body's source + is null, redirects and authentication will end up failing the fetch.
Set httpFetchParams to a copy of fetchParams. @@ -4122,13 +4119,6 @@ steps. They return a response. httpRequest.
request is copied as httpRequest here as we - need to be able to add headers to httpRequest and read its body - without affecting request. Namely, request can be reused with redirects, - authentication, and proxy authentication. We copy rather than clone in order to reduce memory - consumption. In case request's body's source is - null, redirects and authentication will end up failing the fetch. -
Let includeCredentials be true if one of