Skip to content

Commit

Permalink
Merge pull request #5 from stephenplusplus/7-gce
Browse files Browse the repository at this point in the history
use path format for public URL
  • Loading branch information
Jonathan Wayne Parrott committed Jun 10, 2015
2 parents 64cea65 + 5ec7252 commit 65f00e9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions lib/images.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
/*
Copyright 2015, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
Copyright 2015, Google, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
"use strict";
Expand Down Expand Up @@ -53,11 +53,11 @@ module.exports = function (gcloudConfig, cloudStorageBucket, logging) {


/*
Returns the public, anonymously accessable URL to a given Cloud Storage object.
Returns the public, anonymously accessible URL to a given Cloud Storage object.
The object's ACL has to be set to public read.
*/
function getPublicUrl(filename) {
return 'https://' + cloudStorageBucket + '.storage.googleapis.com/' + filename;
return 'https://storage.googleapis.com/' + cloudStorageBucket + '/' + filename;
}


Expand Down

0 comments on commit 65f00e9

Please sign in to comment.