Allow https on scheme without a hostname
Added unittest
Merge pull request #3997 from Danielss89/patch-1

Allow https on scheme without a hostname
Merge branch 'hotfix/3997'

Close #3997