@@ -1597,13 +1597,10 @@ function httpNetworkFetch (
1597
1597
1598
1598
// 2. If aborted, then:
1599
1599
function onResponseAborted ( ) {
1600
- // 1. Finalize response for fetchParams and response.
1601
- finalizeResponse ( fetchParams , response )
1602
-
1603
- // 2. Let aborted be the termination’s aborted flag.
1600
+ // 1. Let aborted be the termination’s aborted flag.
1604
1601
const aborted = this . terminated . aborted
1605
1602
1606
- // 3 . If aborted is set, then:
1603
+ // 2 . If aborted is set, then:
1607
1604
if ( aborted ) {
1608
1605
// 1. Set response’s aborted flag.
1609
1606
response . aborted = true
@@ -1613,14 +1610,14 @@ function httpNetworkFetch (
1613
1610
this . controller . error ( new AbortError ( ) )
1614
1611
}
1615
1612
} else {
1616
- // 4 . Otherwise, if stream is readable, error stream with a TypeError.
1613
+ // 3 . Otherwise, if stream is readable, error stream with a TypeError.
1617
1614
if ( isReadable ( stream ) ) {
1618
1615
this . controller . error ( new TypeError ( 'terminated' ) )
1619
1616
}
1620
1617
}
1621
1618
1622
- // 5 . If connection uses HTTP/2, then transmit an RST_STREAM frame.
1623
- // 6 . Otherwise, the user agent should close connection unless it would be bad for performance to do so.
1619
+ // 4 . If connection uses HTTP/2, then transmit an RST_STREAM frame.
1620
+ // 5 . Otherwise, the user agent should close connection unless it would be bad for performance to do so.
1624
1621
this . connection . destroy ( )
1625
1622
}
1626
1623
0 commit comments