Update router.php

$_SERVER['HTTPS'] could be set, but empty
Merge pull request #2 from nervo/patch-1

Update router.php
Merge remote-tracking branch 'nano/master'