lib/fog/azurerm/models/storage/file.rb in gitlab-fog-azure-rm-1.9.0 vs lib/fog/azurerm/models/storage/file.rb in gitlab-fog-azure-rm-1.9.1
- old
+ new
@@ -249,12 +249,12 @@
def normalize_options(options)
# AWS S3 and Google Cloud Storage pass response-content-disposition
# as a query string, while Azure needs the content_disposition parameter
# to generate a SAS token.
+ options = options.dup
options[:content_disposition] ||= options.dig(:query, 'response-content-disposition')
options[:content_type] ||= options.dig(:query, 'response-content-type')
- options = options.dup
options.delete(:query)
options
end
# Upload blob