Skip to content

Commit

Permalink
Add https support to getSignedUrl function
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard authored and stephenplusplus committed Apr 14, 2015
1 parent 0779b27 commit 3ce39f6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

Burcu Dogan <[email protected]>
Johan Euphrosine <[email protected]>
Marco Ziccardi <[email protected]>
Patrick Costello <[email protected]>
Silvano Luciani <[email protected]>
Stephen Sawchuk <[email protected]>
2 changes: 1 addition & 1 deletion lib/storage/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ File.prototype.getSignedUrl = function(options, callback) {
var signature = sign.sign(credentials.private_key, 'base64');

callback(null, [
'http://storage.googleapis.com' + options.resource,
'https://storage.googleapis.com' + options.resource,
'?GoogleAccessId=' + credentials.client_email,
'&Expires=' + options.expires,
'&Signature=' + encodeURIComponent(signature)
Expand Down

0 comments on commit 3ce39f6

Please sign in to comment.