mirror of https://github.com/calzoneman/sync.git
Remove unused code
This commit is contained in:
parent
27af66075e
commit
80c35b4190
|
@ -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"
|
||||
},
|
||||
|
|
|
@ -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/<channel name>.json (see ./routes/socketconfig.js)
|
||||
|
@ -196,7 +184,5 @@ module.exports = {
|
|||
initializeErrorHandlers(app);
|
||||
},
|
||||
|
||||
redirectHttps: redirectHttps,
|
||||
|
||||
redirectHttp: redirectHttp
|
||||
redirectHttps: redirectHttps
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue