1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Code prettified

This commit is contained in:
Oleg Vivtash 2015-08-18 10:37:42 +03:00
parent 1a6bd8ae2d
commit d7bbe4265d

View file

@ -39,14 +39,11 @@ module Fog
}
temp_url_query.merge!(inline: true) if options[:inline]
temp_url_query.merge!(filename: options[:filename]) if options[:filename]
q = temp_url_query.map do |param, val|
"#{CGI.escape(param.to_s)}=#{CGI.escape(val.to_s)}"
end.join('&')
temp_url_options = {
:scheme => options[:scheme] || @uri.scheme,
:host => @uri.host,
:path => object_path_escaped,
:query => q
:query => temp_url_query.map { |param, val| "#{CGI.escape(param.to_s)}=#{CGI.escape(val.to_s)}" }.join('&')
}
URI::Generic.build(temp_url_options).to_s
end