Skip to content

Commit bb72fc2

Browse files
committed
Fixed build errors
1 parent 606c33f commit bb72fc2

File tree

1 file changed

+26
-19
lines changed

1 file changed

+26
-19
lines changed

fetch.bs

Lines changed: 26 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6457,16 +6457,17 @@ run these steps:
64576457
<h3 id=http-network-compression-dictionary-fetch>HTTP-network compression-dictionary fetch</h3>
64586458

64596459
<div algorithm>
6460-
<p>To <dfn>HTTP-network compression-dictionary fetch</dfn>, given a <a for=/>fetch params</a>
6461-
<var>fetchParams</var>, an optional boolean <var>includeCredentials</var> (default false), and an
6462-
optional boolean <var>forceNewConnection</var> (default false), run these steps:
6460+
<p>To <dfn id=concept-http-network-compression-dictionary-fetch>HTTP-network compression-dictionary fetch</dfn>,
6461+
given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
6462+
<var>includeCredentials</var> (default false), and an optional boolean <var>forceNewConnection</var>
6463+
(default false), run these steps:
64636464

64646465
<ol>
64656466
<li><p>Let <var>request</var> be <var>fetchParams</var>'s <a for="fetch params">request</a>.
64666467

6467-
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>no-cors</code>", then return the result of
6468-
running <a>HTTP-network fetch</a> given <var>fetchParams</var>, <var>includeCredentials</var>, and
6469-
<var>forceNewConnection</var>.
6468+
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>no-cors</code>", then return the
6469+
result of running <a>HTTP-network fetch</a> given <var>fetchParams</var>,
6470+
<var>includeCredentials</var>, and <var>forceNewConnection</var>.
64706471

64716472
<li><p>If the user agent is configured to block cookies for <var>request</var>, then return the
64726473
result of running <a>HTTP-network fetch</a> given <var>fetchParams</var>,
@@ -6480,43 +6481,49 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
64806481
<var>forceNewConnection</var>.
64816482

64826483
<li><p>Let <var>bestMatch</var> be the result of finding the best matching dictionary in
6483-
<var>compressionDictionaryCache</var> for <var>request</var> as defined in [[!HTTP-COMPRESSION-DICTIONARIES]].
6484+
<var>compressionDictionaryCache</var> for <var>request</var> as defined in
6485+
[[!HTTP-COMPRESSION-DICTIONARIES]].
64846486

64856487
<li><p>If <var>bestMatch</var> is null, then return the result of running <a>HTTP-network fetch</a>
64866488
given <var>fetchParams</var>, <var>includeCredentials</var>, and <var>forceNewConnection</var>.
64876489

6488-
<li><p>Add the `<code>Available-Dictionary</code>` and `<code>Dictionary-ID</code>` (if applicable) headers to <var>request</var> using <var>bestMatch</var> as defined in [[!HTTP-COMPRESSION-DICTIONARIES]].
6490+
<li><p>Add the `<code>Available-Dictionary</code>` and `<code>Dictionary-ID</code>`
6491+
(if applicable) headers to <var>request</var> using <var>bestMatch</var> as defined in
6492+
[[!HTTP-COMPRESSION-DICTIONARIES]].
64896493

6490-
<li><p><a>Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcb</code>`) in <var>request</var>'s <a for=request>header list</a>.
6494+
<li><p><a for="header list">Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcb</code>`)
6495+
in <var>request</var>'s <a for=request>header list</a>.
64916496

6492-
<li><p><a>Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcz</code>`) in <var>request</var>'s <a for=request>header list</a>.
6497+
<li><p><a for="header list">Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcz</code>`)
6498+
in <var>request</var>'s <a for=request>header list</a>.
64936499

64946500
<li><p>Let <var>response</var> be the result of running <a>HTTP-network fetch</a> given
64956501
<var>fetchParams</var>, <var>includeCredentials</var>, and <var>forceNewConnection</var>.
64966502

64976503
<li><p>Let <var>codings</var> be the result of <a>extracting header list values</a> given
64986504
`<code>Content-Encoding</code>` and <var>response</var>'s <a for=response>header list</a>.
64996505

6500-
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`, then
6501-
return <var>response</var>.
6506+
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
6507+
then return <var>response</var>.
65026508

65036509
<li><p>If <var>response</var>'s <a for=response>type</a> is "<code>opaque</code>", then return a
65046510
<a>network error</a>.
65056511

6506-
<li><p>Let <var>availableDictionaryHash</var> be the result of <a>getting a structured field value</a>
6507-
given `<code>Available-Dictionary</code>`, "<code>bytestring</code>", and <var>request</var>'s
6508-
<a for=request>header list</a>.
6512+
<li><p>Let <var>availableDictionaryHash</var> be the result of
6513+
<a>getting a structured field value</a> given `<code>Available-Dictionary</code>`,
6514+
"<code>bytestring</code>", and <var>request</var>'s <a for=request>header list</a>.
65096515

6510-
<li><p>Let <var>newBody</var> be a new <a for=/>body</a> whose <a for=body>stream</a> is the result
6511-
of transforming <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a> with an
6512-
algorithm that verifies that the dictionary hash in the stream matches
6516+
<li><p>Let <var>newBody</var> be a new <a for=/>body</a> whose <a for=body>stream</a> is the
6517+
result of transforming <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a>
6518+
with an algorithm that verifies that the dictionary hash in the stream matches
65136519
<var>availableDictionaryHash</var> and decodes the rest of the stream with the applicable
65146520
algorithm as defined in [[!HTTP-COMPRESSION-DICTIONARIES]]. If verification or decoding fails,
65156521
the transformed stream must error.
65166522

65176523
<li><p>Set <var>response</var>'s <a for=response>body</a> to <var>newBody</var>.
65186524

6519-
<li><p><a>Delete</a> `<code>Content-Encoding</code>` from <var>response</var>'s <a for=response>header list</a>.
6525+
<li><p><a>Delete</a> `<code>Content-Encoding</code>` from <var>response</var>'s
6526+
<a for=response>header list</a>.
65206527

65216528
<li><p>Return <var>response</var>.
65226529
</ol>

0 commit comments

Comments
 (0)