I made very simple server like
var httpPort = 3001
var http = require('http');
http.createServer(function (req, res) {
console.log(req.url + " " + req.method);
res.writeHead(200, {'Content-Type':'text/plain'});
res.end('OK');
}
).listen(httpPort,'127.0.0.1');
I think, the server returns xhr.statusCode 200 and xhr.responseText 'OK'
But, client always read 0 and ''
Do i miss something? or wrong code?