Skip to content

Commit 39c2012

Browse files
committed
Expand the clone note
1 parent 25bf260 commit 39c2012

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

fetch.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5566,9 +5566,6 @@ run these steps:
55665566
"<code>error</code>", then set <var>httpFetchParams</var> to <var>fetchParams</var> and
55675567
<var>httpRequest</var> to <var>request</var>.
55685568

5569-
<p class=note>If user prompts are possible, then we need to clone <var>request</var> because
5570-
the user agent might need to re-send <var>request</var>.
5571-
55725569
<li>
55735570
<p>Otherwise:
55745571

@@ -5588,6 +5585,12 @@ run these steps:
55885585
<var>httpRequest</var>.
55895586
</ol>
55905587

5588+
<p class=note>If user prompts or redirects are possible, then the user agent might need to
5589+
re-send the request with a new set of headers after the user answers the prompt or the redirect
5590+
location is determined. At that time, the original request body might have been partially sent
5591+
already, so we need to clone the request (including the body) beforehand so that we have a
5592+
spare copy available.
5593+
55915594
<li>
55925595
<p>Let <var>includeCredentials</var> be true if one of
55935596

0 commit comments

Comments
 (0)