Answer the question
In order to leave comments, you need to log in
Problem with sending binary data by native http module
For example, I give a minimum of code that shows an error:
require('http').createServer(function (req, res) {
var test = new Buffer(4);
test.writeUInt32BE(2886731494, 0);
res.writeHead(200, {'Content-Type': 'text/html'});
res.end(test);
}).listen(81, myServerIp);
Answer the question
In order to leave comments, you need to log in
While I put nginx in front of the server, it helps. But I would still like to hear smart people.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question