@@ -4569,7 +4569,8 @@ steps:
4569
4569
"<code> blank</code> ", then return a new <a for=/>response</a> whose
4570
4570
<a for=response>status message</a> is `<code> OK</code> `, <a for=response>header list</a> is «
4571
4571
(`<code> Content-Type</code> `, `<code> text/html;charset=utf-8</code> `) », and
4572
- <a for=response>body</a> is the empty byte sequence.
4572
+ <a for=response>body</a> is the <a for="body with type">body</a> of the result of
4573
+ <a for=BodyInit>safely extracting</a> the empty byte sequence.
4573
4574
4574
4575
<p> Otherwise, return a <a>network error</a> .
4575
4576
@@ -4597,22 +4598,21 @@ steps:
4597
4598
<p class=note> The `<code> GET</code> ` <a for=/>method</a> restriction serves no useful purpose
4598
4599
other than being interoperable.
4599
4600
4600
- <li><p> Let <var> response </var> be a new <a for=/>response </a> whose
4601
- <a for=response>status message</a> is ` <code> OK </code> ` .
4601
+ <li><p> Let <var> bodyWithType </var> be the result of <a for=BodyInit>safely extracting </a>
4602
+ <var> blobURLEntry </var> 's <a for="blob URL entry">object</a> .
4602
4603
4603
- <li><p> <a for="header list">Append</a> (`<code> Content-Length</code> `, <var> blob</var> 's
4604
- {{Blob/size}} attribute value) to <var> response</var> 's <a for=response>header list</a> .
4604
+ <li><p> Let <var> body</var> be <var> bodyWithType</var> 's <a for="body with type">body</a> .
4605
4605
4606
- <li><p> <a for="header list">Append</a> (` <code> Content-Type </code> `, <var> blob </var> 's
4607
- {{Blob/type}} attribute value) to <var> response </var> 's <a for=response>header list </a> .
4606
+ <li><p> Let <var> length </var> be <var> body </var> 's <a for=body>length</a> ,
4607
+ <a lt="serialize an integer">serialized</a> and <a>isomorphic encoded </a> .
4608
4608
4609
- <li><p> Set <var> response</var> 's <a for=response>body</a> to
4610
- the result of performing the <a spec=fileapi>read operation</a> on
4611
- <var> blob</var> .
4609
+ <li><p> Let <var> type</var> be <var> bodyWithType</var> 's <a for="body with type">type</a> if it
4610
+ is non-null; otherwise the empty byte sequence.
4612
4611
4613
- <!-- This takes care of setting length, transmitted, and error flag as well -->
4614
-
4615
- <li><p> Return <var> response</var> .
4612
+ <li><p> Return a new <a for=/>response</a> whose <a for=response>status message</a> is
4613
+ `<code> OK</code> `, <a for=response>header list</a> is « (`<code> Content-Length</code> `,
4614
+ <var> length</var> ), (`<code> Content-Type</code> `, <var> type</var> ) », and
4615
+ <a for=response>body</a> is <var> body</var> .
4616
4616
</ol>
4617
4617
4618
4618
<li><p> <a>If aborted</a> , then return the <a for=/>appropriate network error</a> for
@@ -4630,9 +4630,10 @@ steps:
4630
4630
<li><p> Let <var> mimeType</var> be <var> dataURLStruct</var> 's
4631
4631
<a for="data: URL struct">MIME type</a> , <a lt="serialize a MIME type to bytes">serialized</a> .
4632
4632
4633
- <li><p> Return a <a for=/>response</a> whose <a for=response>status message</a> is
4633
+ <li><p> Return a new <a for=/>response</a> whose <a for=response>status message</a> is
4634
4634
`<code> OK</code> `, <a for=response>header list</a> is « (`<code> Content-Type</code> `,
4635
- <var> mimeType</var> ) », and <a for=response>body</a> is <var> dataURLStruct</var> 's
4635
+ <var> mimeType</var> ) », and <a for=response>body</a> is the <a for="body with type">body</a> of
4636
+ the result of <a for=BodyInit>safely extracting</a> <var> dataURLStruct</var> 's
4636
4637
<a for="data: URL struct">body</a> .
4637
4638
</ol>
4638
4639
0 commit comments