summaryrefslogtreecommitdiff
path: root/test/simple/test-http-head-response-has-no-body.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/simple/test-http-head-response-has-no-body.js')
-rw-r--r--test/simple/test-http-head-response-has-no-body.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/simple/test-http-head-response-has-no-body.js b/test/simple/test-http-head-response-has-no-body.js
index 270a5e73e9..17ef4ac95e 100644
--- a/test/simple/test-http-head-response-has-no-body.js
+++ b/test/simple/test-http-head-response-has-no-body.js
@@ -15,11 +15,11 @@ server.listen(common.PORT);
var responseComplete = false;
-server.addListener("listening", function() {
- var req = http.createClient(common.PORT).request('HEAD', '/')
+server.addListener('listening', function() {
+ var req = http.createClient(common.PORT).request('HEAD', '/');
common.error('req');
req.end();
- req.addListener('response', function (res) {
+ req.addListener('response', function(res) {
common.error('response');
res.addListener('end', function() {
common.error('response end');
@@ -29,6 +29,6 @@ server.addListener("listening", function() {
});
});
-process.addListener('exit', function () {
+process.addListener('exit', function() {
assert.ok(responseComplete);
});