summaryrefslogtreecommitdiff
path: root/test/simple/test-http-response-no-headers.js
diff options
context:
space:
mode:
authorAndreas Madsen <amwebdk@gmail.com>2012-01-17 19:43:34 +0100
committerBert Belder <bertbelder@gmail.com>2012-01-17 19:45:09 +0100
commit48650639248e73f78b2bd4ba2d3d1590749753ce (patch)
tree8bdfcfb35d8254449b7542d659c05d3fee5afc8e /test/simple/test-http-response-no-headers.js
parentca6ededbd1af5cc759ec98952b84c0b34edb2d40 (diff)
downloadnode-new-48650639248e73f78b2bd4ba2d3d1590749753ce.tar.gz
Tests: fix jslint issues
Diffstat (limited to 'test/simple/test-http-response-no-headers.js')
-rw-r--r--test/simple/test-http-response-no-headers.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/simple/test-http-response-no-headers.js b/test/simple/test-http-response-no-headers.js
index 95bd01aed5..cc5250d826 100644
--- a/test/simple/test-http-response-no-headers.js
+++ b/test/simple/test-http-response-no-headers.js
@@ -27,8 +27,8 @@ var net = require('net');
var expected = {
'0.9': 'I AM THE WALRUS',
'1.0': 'I AM THE WALRUS',
- '1.1': '',
-}
+ '1.1': ''
+};
var gotExpected = false;
@@ -38,11 +38,12 @@ function test(httpVersion, callback) {
});
var server = net.createServer(function(conn) {
- var reply = 'HTTP/' + httpVersion + ' 200 OK\r\n\r\n' + expected[httpVersion];
+ var reply = 'HTTP/' + httpVersion + ' 200 OK\r\n\r\n' +
+ expected[httpVersion];
conn.write(reply, function() {
conn.destroy();
- })
+ });
});
server.listen(common.PORT, '127.0.0.1', function() {