Skip to content

Commit

Permalink
test: Fix test-https-localaddress*
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Dec 16, 2012
1 parent 2433ec8 commit 945f877
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/simple/test-https-localaddress-bind-error.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ var server = https.createServer(options, function(req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('You are from: ' + req.connection.remoteAddress);
});
req.resume();
});

server.listen(common.PORT, "127.0.0.1", function() {
Expand Down
2 changes: 2 additions & 0 deletions test/simple/test-https-localaddress.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var server = https.createServer(options, function (req, res) {
res.writeHead(200, { 'Content-Type': 'text/plain' });
res.end('You are from: ' + req.connection.remoteAddress);
});
req.resume();
});

server.listen(common.PORT, "127.0.0.1", function() {
Expand All @@ -59,6 +60,7 @@ server.listen(common.PORT, "127.0.0.1", function() {
server.close();
process.exit();
});
res.resume();
});
req.end();
});

0 comments on commit 945f877

Please sign in to comment.