Fixes #276: Undefined index: HTTPS
Merge pull request #281 from hawson/issue_276_missing_https

Fixes #276: Undefined index: HTTPS  (replaced previous pull request)