Skip to content

Commit d1ab3d6

Browse files
author
Sven Felix Oberquelle
committed
Make public uris use dev urls, too.
1 parent 00be1ae commit d1ab3d6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/paperclip/storage/azure.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ def obtain_azure_instance_for(options)
154154
end
155155

156156
def azure_uri(style_name = default_style)
157-
"#{azure_storage_client.storage_blob_host}/#{container_name}/#{path(style_name).gsub(%r{\A/}, '')}"
157+
uri = URI "#{container_name}/#{path(style_name).gsub(%r{\A/}, '')}"
158+
azure_interface.generate_uri uri.path, CGI::parse(uri.query || "")
158159
end
159160

160161
def azure_base_url

0 commit comments

Comments
 (0)