Skip to content

Commit f7bdfa9

Browse files
content-encoding always available
1 parent 7647a50 commit f7bdfa9

File tree

1 file changed

+17
-29
lines changed

1 file changed

+17
-29
lines changed

fetch.bs

100644100755
Lines changed: 17 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5042,10 +5042,11 @@ steps:
50425042
<li><p>Let <var>type</var> be <var>blob</var>'s {{Blob/type}}.
50435043

50445044
<li><p>Let <var>accept-coding</var> be the result of <a for="header list">getting</a>
5045-
`<code>Content-Encoding</code>` from <var>request</var>'s <a for=request>header list</a>.
5045+
`<code>Accept-Encoding</code>` from <var>request</var>'s <a for=request>header list</a>.
50465046
If <var>accept-encoding</var> is not null and the server selects one of the encoding options,
5047-
let <var>coding</var> be the selected encoding option; otherwise, i.e., let <var>coding</var>
5048-
be null.
5047+
let <var>coding</var> be the selected encoding option; otherwise, i.e., no encoding is used,
5048+
let <var>coding</var> be <a href=https://httpwg.org/specs/rfc9110.html#field.accept-encoding>
5049+
<code>"identity"</code></a>.
50495050

50505051
<li>
50515052
<p>If <var>request</var>'s <a for=request>header list</a>
@@ -5062,10 +5063,8 @@ steps:
50625063

50635064
<li><p>Set <var>response</var>'s <a for=response>header list</a> to «
50645065
(`<code>Content-Length</code>`, <var>serializedFullLength</var>),
5065-
(`<code>Content-Type</code>`, <var>type</var>) ».
5066-
5067-
<li><p>If <var>coding</var> is non-null,<a for="header list"> append</a> (`<code>Content-Encoding</code>`,
5068-
<var>coding</var>) to <var>response</var>'s <a for=response>header list</a>.
5066+
(`<code>Content-Type</code>`, <var>type</var>),
5067+
(`<code>Content-Encoding</code>`, <var>coding</var>) ».
50695068

50705069
</ol>
50715070

@@ -5135,10 +5134,8 @@ steps:
51355134
<li><p>Set <var>response</var>'s <a for=response>header list</a> to «
51365135
(`<code>Content-Length</code>`, <var>serializedSlicedLength</var>),
51375136
(`<code>Content-Type</code>`, <var>type</var>), (`<code>Content-Range</code>`,
5138-
<var>contentRange</var>) ».
5137+
<var>contentRange</var>), (`<code>Content-Encoding</code>`, <var>coding</var>) ».
51395138

5140-
<li><p>If <var>coding</var> is non-null,<a for="header list"> append</a> (`<code>Content-Encoding</code>`,
5141-
<var>coding</var>) to <var>response</var>'s <a for=response>header list</a>.
51425139
</ol>
51435140

51445141
<li><p>Return <var>response</var>.
@@ -5156,26 +5153,17 @@ steps:
51565153
<a for="data: URL struct">MIME type</a>, <a lt="serialize a MIME type to bytes">serialized</a>.
51575154

51585155
<li><p>Let <var>accept-coding</var> be the result of <a for="header list">getting</a>
5159-
`<code>Content-Encoding</code>` from <var>request</var>'s <a for=request>header list</a>.
5156+
`<code>Accept-Encoding</code>` from <var>request</var>'s <a for=request>header list</a>.
51605157
If <var>accept-encoding</var> is not null and the server selects one of the encoding options,
5161-
let <var>coding</var> be the selected encoding option; otherwise, i.e., let <var>coding</var>
5162-
be null.
5163-
<li><p>Let <var>response</var> be a new <a for=/>response</a>.
5164-
5165-
<li><p>Set <var>response</var>'s <a for=response>status message</a> to
5166-
<code>OK</code>`.
5167-
5168-
<li><p>Set <var>response</var>'s <a for=response>header list</a> to «
5169-
(`<code>Content-Type</code>`, <var>mimeType</var>)».
5170-
5171-
<li><p>If <var>coding</var> is non-null,<a for="header list"> append</a>
5172-
(`<code>Content-Encoding</code>`, <var>coding</var>) to <var>response</var>'s
5173-
<a for=response>header list</a>.
5174-
5175-
<li><p>Set <var>response</var>'s <a for=response>body</a> to <var>dataURLStruct</var>'s
5176-
<a for="data: URL struct">body</a>
5177-
5178-
<li><p>Return <var>response</var>.
5158+
let <var>coding</var> be the selected encoding option; otherwise, i.e., no encoding is used,
5159+
let <var>coding</var> be <a href=https://httpwg.org/specs/rfc9110.html#field.accept-encoding>
5160+
<code>"identity"</code></a>.
5161+
5162+
<li><p>Return a new <a for=/>response</a> whose <a for=response>status message</a> is
5163+
`<code>OK</code>`, <a for=response>header list</a> is « (`<code>Content-Type</code>`,
5164+
<var>mimeType</var>), (`<code>Content-Encoding</code>`, <var>coding</var>) », and
5165+
<a for=response>body</a> is <var>dataURLStruct</var>'s <a for="data: URL struct">
5166+
body</a> <a for="byte sequence">as a body</a>.
51795167

51805168
</ol>
51815169

0 commit comments

Comments
 (0)