1 var common = require('../common');
2 var http = require('http');
4 // Simple test of Node's HTTP Client choking on a response
5 // with a 'Content-Length: 0 ' response header.
6 // I.E. a space character after the 'Content-Length' throws an `error` event.
9 var s = http.createServer(function(req, res) {
10 res.writeHead(200, {'Content-Length': '0 '});
13 s.listen(common.PORT, function() {
15 var request = http.request({ port: common.PORT }, function(response) {
16 console.log('STATUS: ' + response.statusCode);