-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: premature close with chunked transfer encoding and for async ite…
…rators in Node 12 (#1172) * fix: premature close with chunked transfer encoding and for async iterators in Node 12 This PR backports the fix from #1064 to the `2.x.x` branch following the [comment here](#1064 (comment)). I had to add some extra babel config to allow using the `for await..of` syntax in the tests. The config is only needed for the tests as this syntax is not used in the implementation. * chore: fix up tests for node 6+ * chore: codecov dropped support for node < 8 without shipping major * chore: npm7 strips empty dependencies hash during install * chore: pin deps to versions that work on node 4 * chore: do not emit close error after aborting a request * chore: test on node 4-16 * chore: simplify chunked transer encoding bad ending * chore: avoid calling .destroy as it is not in every node.js release * chore: listen for response close as socket is reused and shows warnings
- Loading branch information
1 parent
838d971
commit 50536d1
Showing
7 changed files
with
221 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,8 @@ node_js: | |
- "6" | ||
- "8" | ||
- "10" | ||
- "12" | ||
- "14" | ||
- "node" | ||
env: | ||
- FORMDATA_VERSION=1.0.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters