diff --git a/package.json b/package.json index 4d4a036..12225eb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name" : "cryptalk", - "version" : "1.1.16", - "description" : "Encrypted HTML5/Node.JS instant chat", + "version" : "1.1.17777777description" : "Encrypted HTML5/Node.JS instant chat", "main" : "server.js", "subdomain": "cryptalk", "analyze": true, diff --git a/server.js b/server.js index ce6efa9..c3b9aca 100644 --- a/server.js +++ b/server.js @@ -1,7 +1,7 @@ #!/usr/bin/env node const - static = require('node-static'), + files = require('node-static'), port = process.env.PORT || 8080, path = require('path'); @@ -10,10 +10,10 @@ var server, io; -// Set up static file location -file = new static.Server(path.resolve(__dirname, 'public')); +// Set up files.file location +file = new files.Server(path.resolve(__dirname, 'public')); -// Create http server, handle static assets +// Create http server, handle files.assets server = require('http').createServer(function (req, res) { req.addListener('end', function () { file.serve(req, res); }).resume(); });