Skip to content

Commit 7149b15

Browse files
authored
Disallow streaming upload on HTTP/1.x connections
This is to reduce the risk to break existing HTTP/1.1 servers. Fixes #966.
1 parent f725059 commit 7149b15

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

fetch.bs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5447,11 +5447,9 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
54475447
<a for="fetch timing info">post-redirect start time</a>, and <var>fetchParams</var>'s
54485448
<a for="fetch params">cross-origin isolated capability</a>.
54495449

5450-
<li><p>If <var>connection</var> is not an HTTP/2 connection, <var>request</var>'s
5450+
<li><p>If <var>connection</var> is an HTTP/1.x connection, <var>request</var>'s
54515451
<a for=request>body</a> is non-null, and <var>request</var>'s <a for=request>body</a>'s
5452-
<a for=body>source</a> is null, then <a for="header list">append</a>
5453-
(`<code>Transfer-Encoding</code>`, `<code>chunked</code>`) to <var>request</var>'s
5454-
<a for=request>header list</a>.
5452+
<a for=body>source</a> is null, then return a <a>network error</a>.
54555453

54565454
<li>Set <var>timingInfo</var>'s <a for="fetch timing info">final network-request start time</a>
54575455
to the <a for=/>coarsened shared current time</a> given <var>fetchParams</var>'s
@@ -5525,10 +5523,6 @@ optional boolean <var>forceNewConnection</var> (default false), run these steps:
55255523
therefore <var>response</var> represents both a <a for=/>response</a> and
55265524
an HTTP response here.
55275525

5528-
<p>If <var>request</var>'s <a for=request>header list</a> contains
5529-
(`<code>Transfer-Encoding</code>`, `<code>chunked</code>`) and <var>response</var> is
5530-
transferred via HTTP/1.0 or older, then return a <a>network error</a>.
5531-
55325526
<p>If the HTTP request results in a TLS client certificate dialog, then:
55335527

55345528
<ol>

0 commit comments

Comments
 (0)