Fix Twitch not working on HTTPS and allow HTTPS channel page

This commit is contained in:
calzoneman 2014-11-24 19:24:47 -06:00
parent 9db35ba811
commit 2f2ed8aaf9
3 changed files with 2 additions and 19 deletions

View file

@ -68,10 +68,6 @@ function redirectHttp(req, res) {
* Handles a GET request for /r/:channel - serves channel.html
*/
function handleChannel(req, res) {
if (redirectHttp(req, res)) {
return;
}
if (!$util.isValidChannelName(req.params.channel)) {
res.status(404);
res.send("Invalid channel name '" + req.params.channel + "'");