Skip to content

Commit

Permalink
Add the "https://" prefix even if the endpoint isn't surrounded by br…
Browse files Browse the repository at this point in the history
…ackets. Otherwise this results in an invalid ServiceURL exception
  • Loading branch information
Darrell Zook committed Oct 23, 2023
1 parent 64b638c commit d9fa6d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Snowflake.Data/Core/FileTransfer/StorageClient/SFS3Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d9fa6d9

Please sign in to comment.