Skip to content

Commit 67d0c25

Browse files
SNOW-1889398: Handle endpoint without protocol for GCS (#994)
1 parent e8cb18c commit 67d0c25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/file_transfer_agent/gcs_util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ function GCSUtil(connectionConfig, httpClient, fileStream) {
462462
const fullFilePath = `${gcsLocation.path}${filename}`;
463463
const endPoint = this.getGCSCustomEndPoint(stageInfo);
464464
const link = `${endPoint != null ? endPoint : 'https://storage.googleapis.com'}/${gcsLocation.bucketName}/${fullFilePath}`;
465-
return link;
465+
return link.startsWith('https://') ? link : `https://${link}`;
466466
};
467467

468468
this.getGCSCustomEndPoint = function (stageInfo) {

0 commit comments

Comments
 (0)