diff --git a/package.json b/package.json index 7cb574c4..27969620 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "author": "Calvin Montgomery", "name": "CyTube", "description": "Online media synchronizer and chat", - "version": "3.12.0", + "version": "3.12.1", "repository": { "url": "http://github.com/calzoneman/sync" }, diff --git a/src/web/webserver.js b/src/web/webserver.js index 35150f14..379b4029 100644 --- a/src/web/webserver.js +++ b/src/web/webserver.js @@ -44,18 +44,6 @@ function redirectHttps(req, res) { return false; } -/** - * Redirects a request to HTTP if the server supports it - */ -function redirectHttp(req, res) { - if (req.secure) { - var domain = Config.get('http.full-address'); - res.redirect(domain + req.path); - return true; - } - return false; -} - /** * Legacy socket.io configuration endpoint. This is being migrated to * /socketconfig/.json (see ./routes/socketconfig.js) @@ -196,7 +184,5 @@ module.exports = { initializeErrorHandlers(app); }, - redirectHttps: redirectHttps, - - redirectHttp: redirectHttp + redirectHttps: redirectHttps };