From d9fa6d9ad15b47f02f205aaeee5a43acecdb2eb4 Mon Sep 17 00:00:00 2001 From: Darrell Zook Date: Mon, 23 Oct 2023 15:20:59 -0500 Subject: [PATCH] Add the "https://" prefix even if the endpoint isn't surrounded by brackets. Otherwise this results in an invalid ServiceURL exception --- .../Core/FileTransfer/StorageClient/SFS3Client.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Snowflake.Data/Core/FileTransfer/StorageClient/SFS3Client.cs b/Snowflake.Data/Core/FileTransfer/StorageClient/SFS3Client.cs index e68fbbd3e..3e9d3afa7 100644 --- a/Snowflake.Data/Core/FileTransfer/StorageClient/SFS3Client.cs +++ b/Snowflake.Data/Core/FileTransfer/StorageClient/SFS3Client.cs @@ -316,10 +316,10 @@ private static void SetCommonClientConfig( if(start > -1 && end > -1 && end > start) { endpoint = endpoint.Substring(start + 1, end - start - 1); - if(!endpoint.Contains("https")) - { - endpoint = "https://" + endpoint; - } + } + if (!endpoint.Contains("https")) + { + endpoint = "https://" + endpoint; } clientConfig.ServiceURL = endpoint; }