3.0 source code
This commit is contained in:
26
OfficeWeb/vendor/requirejs/tests/browsertests/noload/server.js
vendored
Normal file
26
OfficeWeb/vendor/requirejs/tests/browsertests/noload/server.js
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/*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 + '/');
|
||||
Reference in New Issue
Block a user