src: disable fast math on arm
[platform/upstream/nodejs.git] / test / parallel / test-http-contentLength0.js
1 var common = require('../common');
2 var http = require('http');
3
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.
7
8
9 var s = http.createServer(function(req, res) {
10   res.writeHead(200, {'Content-Length': '0 '});
11   res.end();
12 });
13 s.listen(common.PORT, function() {
14
15   var request = http.request({ port: common.PORT }, function(response) {
16     console.log('STATUS: ' + response.statusCode);
17     s.close();
18     response.resume();
19   });
20
21   request.end();
22 });