mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
test: improve tests for test-http-url.parse
PR-URL: https://github.com/nodejs/node/pull/18523 Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com>
This commit is contained in:
parent
ca473be461
commit
4a881e04dc
8 changed files with 24 additions and 67 deletions
|
@ -42,7 +42,7 @@ function check(request) {
|
|||
|
||||
const server = https.createServer(httpsOptions, function(request, response) {
|
||||
// run the check function
|
||||
check.call(this, request, response);
|
||||
check(request);
|
||||
response.writeHead(200, {});
|
||||
response.end('ok');
|
||||
server.close();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue