From 2eaed80435113f24ba7b66397d7a41079bd2b68b Mon Sep 17 00:00:00 2001 From: Vishesh Date: Thu, 4 Jan 2024 17:26:07 +0530 Subject: [PATCH] ui: fix ssl check in image store browser (#8430) This PR fixes the ssl in image store browser. --- ui/src/components/view/ObjectStoreBrowser.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/components/view/ObjectStoreBrowser.vue b/ui/src/components/view/ObjectStoreBrowser.vue index f2e68c8b954..531846a9da5 100644 --- a/ui/src/components/view/ObjectStoreBrowser.vue +++ b/ui/src/components/view/ObjectStoreBrowser.vue @@ -449,7 +449,7 @@ export default { initMinioClient () { if (!this.client) { const url = /https?:\/\/([^/]+)\/?/.exec(this.resource.url.split(this.resource.name)[0])[1] - const isHttps = /^https/.test(url) + const isHttps = /^https/.test(this.resource.url) this.client = new Minio.Client({ endPoint: url.split(':')[0], port: url.split(':').length > 1 ? parseInt(url.split(':')[1]) : isHttps ? 443 : 80,