Commit b7d5d77
Bugfix/use write head instead of implicit header (#170)
* Add failing tests for http2
* Add support for http2
The change just removes the usage of undocumented http API and instead uses the proper writeHead method
* Remove arrow function in tests
* Conditionally run http2 tests if http2 is available
* Fix port in tests to be assigned automatically
* Change http2 test usage to describe.skip if no http2 available
* Fix closing the http2 connections to prevent possible exceptions
* Fix closing the request first, then the client, then the server
* Fix closing for v8.x and v9.x
* fix tests not draining data for http2 requests, resulting in timeouts in node v10.4 onwards
* fix: 🐛 assert.equal error
* fix: 🐛 remove console.log's and timeout, let build fail
* Apply suggestions from code review
Co-authored-by: Lam Wei Li <lam_wei_li@hotmail.com>
* fixed lint
* fix: an issue where test hangs when assertion fails in http2 as http2server is not closed
* refactor: use http2.constants instead of hard-coded strings in http2 test
* Node.js 0.8 compatible
* fix lint issue
---------
Co-authored-by: Moritz Peters <maritz.peters@gmail.com>
Co-authored-by: Moritz Peters <moritz@mpeters.biz>
Co-authored-by: Lam Wei Li <lam_wei_li@hotmail.com>
Co-authored-by: Sebastian Beltran <bjohansebas@gmail.com>1 parent 8e5641c commit b7d5d77
2 files changed
+88
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
| 103 | + | |
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
305 | 315 | | |
306 | 316 | | |
307 | 317 | | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
308 | 353 | | |
309 | 354 | | |
310 | 355 | | |
| |||
674 | 719 | | |
675 | 720 | | |
676 | 721 | | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
677 | 763 | | |
678 | 764 | | |
679 | 765 | | |
| |||
0 commit comments