summaryrefslogtreecommitdiff
path: root/test/simple/test-http-contentLength0.js
diff options
context:
space:
mode:
authorOleg Efimov <efimovov@gmail.com>2010-12-06 01:33:52 +0300
committerRyan Dahl <ry@tinyclouds.org>2010-12-05 15:42:41 -0800
commit093dfaf801a10905ba27df8cf3aa17b36ea5149a (patch)
tree27c559ae0d5c97c4671be1ed2b7d247ea6aacb34 /test/simple/test-http-contentLength0.js
parent0665f0271e71270dc23ec5231b245adfe709a49f (diff)
downloadnode-new-093dfaf801a10905ba27df8cf3aa17b36ea5149a.tar.gz
GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters). test/simple/test-url.js:39:(0110) Line too long (85 characters). test/simple/test-url.js:40:(0110) Line too long (92 characters).
Diffstat (limited to 'test/simple/test-http-contentLength0.js')
-rw-r--r--test/simple/test-http-contentLength0.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/simple/test-http-contentLength0.js b/test/simple/test-http-contentLength0.js
index 7e3dca5409..a7e2b5acdc 100644
--- a/test/simple/test-http-contentLength0.js
+++ b/test/simple/test-http-contentLength0.js
@@ -1,12 +1,13 @@
var common = require('../common');
-var http = require("http");
+var http = require('http');
-// Simple test of Node's HTTP Client choking on a response with a "Content-Length: 0 " response header.
-// I.E. a space character after the "Content-Length" throws an `error` event.
+// Simple test of Node's HTTP Client choking on a response
+// with a 'Content-Length: 0 ' response header.
+// I.E. a space character after the 'Content-Length' throws an `error` event.
-var s = http.createServer(function(req, res) {
- res.writeHead(200, { "Content-Length": "0 " });
+var s = http.createServer(function(req, res) {
+ res.writeHead(200, {'Content-Length': '0 '});
res.end();
});
s.listen(common.PORT, function() {
@@ -14,7 +15,7 @@ s.listen(common.PORT, function() {
var r = http.createClient(common.PORT);
var request = r.request('GET', '/');
- request.on('response', function (response) {
+ request.on('response', function(response) {
console.log('STATUS: ' + response.statusCode);
s.close();
});