Skip to content

Commit ffbaefb

Browse files
committed
Editorial: replace UTF-8 encode with isomorphic encode
This more clearly indicates the input is (supposed to be) ASCII safe.
1 parent 819d8c9 commit ffbaefb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

fetch.bs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3598,10 +3598,8 @@ Range Requests</cite>. [[HTTP-RANGE]] However, this is not widely supported by b
35983598

35993599
<li><p>If <var>httpRequest</var>'s <a for=request>referrer</a> is a <a for=/>URL</a>, then
36003600
<a for="header list">append</a> `<code>Referer</code>`/<var>httpRequest</var>'s
3601-
<a for=request>referrer</a>, <a lt="url serializer">serialized</a> and <a>UTF-8 encoded</a>, to
3602-
<var>httpRequest</var>'s <a for=request>header list</a>.
3603-
<!-- XXX ideally we have an easier way to convert something ASCII-safe into bytes
3604-
concept-as-bytes -->
3601+
<a for=request>referrer</a>, <a lt="url serializer">serialized</a> and <a>isomorphic encoded</a>,
3602+
to <var>httpRequest</var>'s <a for=request>header list</a>.
36053603

36063604
<li><p>If the <i>CORS flag</i> is set, <var>httpRequest</var>'s <a for=request>method</a> is
36073605
neither `<code>GET</code>` nor `<code>HEAD</code>`, or <var>httpRequest</var>'s
@@ -5880,7 +5878,7 @@ method, when invoked, must run these steps:
58805878
<a for=response>status</a> to <var>status</var>.
58815879

58825880
<li><p><a for="header list">Set</a> `<code>Location</code>` to <var>parsedURL</var>,
5883-
<a lt="url serializer">serialized</a> and <a>UTF-8 encoded</a>, in <var>r</var>'s
5881+
<a lt="url serializer">serialized</a> and <a>isomorphic encoded</a>, in <var>r</var>'s
58845882
<a for=Response>response</a>'s <a for=response>header list</a>.
58855883

58865884
<li><p>Return <var>r</var>.

0 commit comments

Comments
 (0)