Fix handler only checking https protocol
Merge pull request #3 from zenima/fixhttps

Fix handler only checking https protocol