added additional check for HTTPS
Merge pull request #6 from jfluhmann/master

added additional check for HTTPS