Skip to content

Commit ae9f693

Browse files
SNOW-1889398: Handle endpoint without protocol for GCS (snowflakedb#1080)
1 parent c45f1ad commit ae9f693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Snowflake.Data/Core/FileTransfer/StorageClient/SFGCSClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ private Google.Cloud.Storage.V1.StorageClient BuildStorageClient(StorageClientBu
9191
{
9292
var gcsCustomEndpoint = stageInfo.GcsCustomEndpoint();
9393
if (!string.IsNullOrEmpty(gcsCustomEndpoint))
94-
builder.BaseUri = gcsCustomEndpoint;
94+
builder.BaseUri = gcsCustomEndpoint.StartsWith("https://") ? gcsCustomEndpoint : "https://" + gcsCustomEndpoint;
9595
return builder.Build();
9696
}
9797

0 commit comments

Comments
 (0)