From 5d1df7393d5ce7c59ffc35f44548526dc83d4323 Mon Sep 17 00:00:00 2001 From: zealotchen <92966734+zealotchen0@users.noreply.github.com> Date: Wed, 22 Jan 2025 18:42:51 +0800 Subject: [PATCH] fix(ohos): fix remote server url parse (#4179) --- .../ets/hippy_framework/devsupport/DevRemoteServerData.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;