mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
test: Fix simple/test-http-localaddress
This commit is contained in:
@@ -33,6 +33,7 @@ var server = http.createServer(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() {
|
||||
|
||||
@@ -36,6 +36,7 @@ var server = http.createServer(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() {
|
||||
@@ -50,6 +51,7 @@ server.listen(common.PORT, "127.0.0.1", function() {
|
||||
server.close();
|
||||
process.exit();
|
||||
});
|
||||
res.resume();
|
||||
});
|
||||
req.end();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user