diff --git a/framework/ohos/src/main/ets/hippy_framework/devsupport/DevRemoteServerData.ets b/framework/ohos/src/main/ets/hippy_framework/devsupport/DevRemoteServerData.ets index 3de0345675e..d16e40af02d 100644 --- a/framework/ohos/src/main/ets/hippy_framework/devsupport/DevRemoteServerData.ets +++ b/framework/ohos/src/main/ets/hippy_framework/devsupport/DevRemoteServerData.ets @@ -63,7 +63,8 @@ export class DevRemoteServerData { return; } let url = Url.URL.parseURL(remoteServerUrl) - this.scheme = url.protocol; + // url.protocol is "https:", remove ':' + this.scheme = url.protocol.replace(/:$/, ''); this.host = url.hostname; this.path = url.pathname; let port = url.port;