fix checkUrlScheme for https