DocumentServer/OfficeWeb/vendor/requirejs/tests/browsertests/noload/server.js
2015-04-28 17:59:00 +03:00

27 lines
554 B
JavaScript

/*jslint strict: false*/
/*global require: false, console: false */
var http = require('http'),
host = '0.0.0.0',
port = 9320,
config;
http.createServer(function (req, res) {
req.on('end', function () {
var contents = '500 server error';
res.writeHead(500, {
'Content-Type': 'text/plain',
'Content-Length': contents.length
});
res.write(contents, 'utf8');
res.end();
});
}).listen(port, host);
console.log('Server running at http://' + host + ':' + port + '/');