summaryrefslogtreecommitdiffstats
path: root/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/static.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/src/main/webapp/usageguide/appserver/node_modules/mongoose/static.js')
-rw-r--r--common/src/main/webapp/usageguide/appserver/node_modules/mongoose/static.js24
1 files changed, 0 insertions, 24 deletions
diff --git a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/static.js b/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/static.js
deleted file mode 100644
index d84e59f..0000000
--- a/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/static.js
+++ /dev/null
@@ -1,24 +0,0 @@
-
-var static = require('node-static');
-var server = new static.Server('.', {cache: 0});
-
-require('http').createServer(function(req, res) {
- if (req.url === '/favicon.ico') {
- req.destroy();
- res.statusCode = 204;
- return res.end();
- }
-
- req.on('end', function() {
- server.serve(req, res, function(err) {
- if (err) {
- console.error(err, req.url);
- res.writeHead(err.status, err.headers);
- res.end();
- }
- });
- });
- req.resume();
-}).listen(8088);
-
-console.error('now listening on http://localhost:8088');