lib/google/cloud/storage/file/signer_v4.rb in google-cloud-storage-1.50.0 vs lib/google/cloud/storage/file/signer_v4.rb in google-cloud-storage-1.51.0
- old
+ new
@@ -299,10 +299,10 @@
end
##
# The external url to the file.
def ext_url scheme, virtual_hosted_style, bucket_bound_hostname
- url = GOOGLEAPIS_URL.dup
+ url = @service.service.root_url.chomp "/"
if virtual_hosted_style
parts = url.split "//"
parts[1] = "#{@bucket_name}.#{parts[1]}"
parts.join "//"
elsif bucket_bound_hostname