Merge pull request #2245 from maltzurra/patch-1

Fixed is_https() to avoid incorrect detection.