Allow https on scheme without a hostname
Added unittest
Merge branch 'hotfix/3991'

Close #3991
Fixes #3858
Merge pull request #3997 from Danielss89/patch-1

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

Forward port #3997