Skip to content

Commit 3ce39f6

Browse files
mziccardstephenplusplus
authored andcommitted
Add https support to getSignedUrl function
1 parent 0779b27 commit 3ce39f6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CONTRIBUTORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
Burcu Dogan <[email protected]>
1515
Johan Euphrosine <[email protected]>
16+
Marco Ziccardi <[email protected]>
1617
Patrick Costello <[email protected]>
1718
Silvano Luciani <[email protected]>
1819
Stephen Sawchuk <[email protected]>

lib/storage/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ File.prototype.getSignedUrl = function(options, callback) {
787787
var signature = sign.sign(credentials.private_key, 'base64');
788788

789789
callback(null, [
790-
'http://storage.googleapis.com' + options.resource,
790+
'https://storage.googleapis.com' + options.resource,
791791
'?GoogleAccessId=' + credentials.client_email,
792792
'&Expires=' + options.expires,
793793
'&Signature=' + encodeURIComponent(signature)

0 commit comments

Comments
 (0)