http: fix close return value mismatch between doc and implementation

PR-URL: https://github.com/nodejs/node/pull/51797
Fixes: https://github.com/nodejs/node/issues/51787
Reviewed-By: Paolo Insogna <paolo@cowtech.it>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
This commit is contained in:
kylo5aby authored and Richard Lau committed 2024-03-25 19:27:47 +00:00
1 parent cea90dcfe3
commit 6bf148e12b
3 files changed
+3

No files matched your search

+1
View File
@@ -139,4 +139,5 @@ process.on('exit', function() {
assert.match(server_response, quit);
assert.strictEqual(client_got_eof, true);
assert.strictEqual(server.close(), server);
});