Skip to content

Commit 0fc1d1f

Browse files
committed
Fixed build errors
1 parent ff60326 commit 0fc1d1f

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
@@ -6328,16 +6328,17 @@ run these steps:
63286328
<h3 id=http-network-compression-dictionary-fetch>HTTP-network compression-dictionary fetch</h3>
63296329

63306330
<div algorithm>
6331-
<p>To <dfn>HTTP-network compression-dictionary fetch</dfn>, given a <a for=/>fetch params</a>
6332-
<var>fetchParams</var>, an optional boolean <var>includeCredentials</var> (default false), and an
6333-
optional boolean <var>forceNewConnection</var> (default false), run these steps:
6331+
<p>To <dfn id=concept-http-network-compression-dictionary-fetch>HTTP-network compression-dictionary fetch</dfn>,
6332+
given a <a for=/>fetch params</a> <var>fetchParams</var>, an optional boolean
6333+
<var>includeCredentials</var> (default false), and an optional boolean <var>forceNewConnection</var>
6334+
(default false), run these steps:
63346335

63356336
<ol>
63366337
<li><p>Let <var>request</var> be <var>fetchParams</var>'s <a for="fetch params">request</a>.
63376338

6338-
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>no-cors</code>", then return the result of
6339-
running <a>HTTP-network fetch</a> given <var>fetchParams</var>, <var>includeCredentials</var>, and
6340-
<var>forceNewConnection</var>.
6339+
<li><p>If <var>request</var>'s <a for=request>mode</a> is "<code>no-cors</code>", then return the
6340+
result of running <a>HTTP-network fetch</a> given <var>fetchParams</var>,
6341+
<var>includeCredentials</var>, and <var>forceNewConnection</var>.
63416342

63426343
<li><p>If the user agent is configured to block cookies for <var>request</var>, then return the
63436344
result of running <a>HTTP-network fetch</a> given <var>fetchParams</var>,
@@ -6351,43 +6352,49 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
63516352
<var>forceNewConnection</var>.
63526353

63536354
<li><p>Let <var>bestMatch</var> be the result of finding the best matching dictionary in
6354-
<var>compressionDictionaryCache</var> for <var>request</var> as defined in [[!HTTP-COMPRESSION-DICTIONARIES]].
6355+
<var>compressionDictionaryCache</var> for <var>request</var> as defined in
6356+
[[!HTTP-COMPRESSION-DICTIONARIES]].
63556357

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

6359-
<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]].
6361+
<li><p>Add the `<code>Available-Dictionary</code>` and `<code>Dictionary-ID</code>`
6362+
(if applicable) headers to <var>request</var> using <var>bestMatch</var> as defined in
6363+
[[!HTTP-COMPRESSION-DICTIONARIES]].
63606364

6361-
<li><p><a>Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcb</code>`) in <var>request</var>'s <a for=request>header list</a>.
6365+
<li><p><a for="header list">Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcb</code>`)
6366+
in <var>request</var>'s <a for=request>header list</a>.
63626367

6363-
<li><p><a>Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcz</code>`) in <var>request</var>'s <a for=request>header list</a>.
6368+
<li><p><a for="header list">Combine</a> (`<code>Accept-Encoding</code>`, `<code>dcz</code>`)
6369+
in <var>request</var>'s <a for=request>header list</a>.
63646370

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

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

6371-
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`, then
6372-
return <var>response</var>.
6377+
<li><p>If <var>codings</var> is null or does not contain `<code>dcb</code>` or `<code>dcz</code>`,
6378+
then return <var>response</var>.
63736379

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

6377-
<li><p>Let <var>availableDictionaryHash</var> be the result of <a>getting a structured field value</a>
6378-
given `<code>Available-Dictionary</code>`, "<code>bytestring</code>", and <var>request</var>'s
6379-
<a for=request>header list</a>.
6383+
<li><p>Let <var>availableDictionaryHash</var> be the result of
6384+
<a>getting a structured field value</a> given `<code>Available-Dictionary</code>`,
6385+
"<code>bytestring</code>", and <var>request</var>'s <a for=request>header list</a>.
63806386

6381-
<li><p>Let <var>newBody</var> be a new <a for=/>body</a> whose <a for=body>stream</a> is the result
6382-
of transforming <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a> with an
6383-
algorithm that verifies that the dictionary hash in the stream matches
6387+
<li><p>Let <var>newBody</var> be a new <a for=/>body</a> whose <a for=body>stream</a> is the
6388+
result of transforming <var>response</var>'s <a for=response>body</a>'s <a for=body>stream</a>
6389+
with an algorithm that verifies that the dictionary hash in the stream matches
63846390
<var>availableDictionaryHash</var> and decodes the rest of the stream with the applicable
63856391
algorithm as defined in [[!HTTP-COMPRESSION-DICTIONARIES]]. If verification or decoding fails,
63866392
the transformed stream must error.
63876393

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

6390-
<li><p><a>Delete</a> `<code>Content-Encoding</code>` from <var>response</var>'s <a for=response>header list</a>.
6396+
<li><p><a>Delete</a> `<code>Content-Encoding</code>` from <var>response</var>'s
6397+
<a for=response>header list</a>.
63916398

63926399
<li><p>Return <var>response</var>.
63936400
</ol>

0 commit comments

Comments
 (0)