Skip to content

Commit

Permalink
SNOW-1889398: Handle endpoint without protocol for GCS (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz authored Jan 20, 2025
1 parent e8cb18c commit 67d0c25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/file_transfer_agent/gcs_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ function GCSUtil(connectionConfig, httpClient, fileStream) {
const fullFilePath = `${gcsLocation.path}${filename}`;
const endPoint = this.getGCSCustomEndPoint(stageInfo);
const link = `${endPoint != null ? endPoint : 'https://storage.googleapis.com'}/${gcsLocation.bucketName}/${fullFilePath}`;
return link;
return link.startsWith('https://') ? link : `https://${link}`;
};

this.getGCSCustomEndPoint = function (stageInfo) {
Expand Down

0 comments on commit 67d0c25

Please sign in to comment.