fixes issue #336

fixes issue #336
Merge pull request #337 from chris18890/https-fix

fixes issue #336