diff --git a/lib/storage/file.js b/lib/storage/file.js index f166aa3a7a5..7a86fff2cef 100644 --- a/lib/storage/file.js +++ b/lib/storage/file.js @@ -425,7 +425,7 @@ File.prototype.createReadStream = function(options) { var crc32c = validation === 'crc32c' || validation === 'all'; var md5 = validation === 'md5' || validation === 'all'; - var remoteFilePath = util.format('https://{b}.storage.googleapis.com/{o}', { + var remoteFilePath = util.format('https://storage.googleapis.com/{b}/{o}', { b: this.bucket.name, o: encodeURIComponent(this.name) }); diff --git a/test/storage/file.js b/test/storage/file.js index c4e82371ed0..a868905c050 100644 --- a/test/storage/file.js +++ b/test/storage/file.js @@ -395,7 +395,7 @@ describe('File', function() { } it('should create an authorized request', function(done) { - var expectedPath = util.format('https://{b}.storage.googleapis.com/{o}', { + var expectedPath = util.format('https://storage.googleapis.com/{b}/{o}', { b: file.bucket.name, o: encodeURIComponent(file.name) });