lib/fog/azurerm/requests/storage/get_blob_url.rb in gitlab-fog-azure-rm-1.0.0 vs lib/fog/azurerm/requests/storage/get_blob_url.rb in gitlab-fog-azure-rm-1.0.1
- old
+ new
@@ -3,10 +3,10 @@
class AzureRM
# This class provides the actual implemention for service calls.
class Real
# Get a public blob url from Azure blob storage
def get_blob_url(container_name, blob_name, options = {})
- uri = @blob_client.generate_uri("#{container_name}/#{blob_name}")
+ uri = @blob_client.generate_uri("#{container_name}/#{blob_name}", {}, { encode: true })
if options[:scheme] == 'http'
uri.to_s.gsub('https:', 'http:')
else
uri.to_s