1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
This commit is contained in:
Wesley Beary 2009-06-10 10:08:39 -07:00
parent 87161229d9
commit d3f26ab7a0

View file

@ -215,7 +215,9 @@ module Fog
def canonicalize_resource(uri)
resource = "/"
resource << "#{match[1]}/" if match = uri.host.match(/(.*).s3.amazonaws.com/)
if match = uri.host.match(/(.*).s3.amazonaws.com/)
resource << "#{match[1]}/"
end
resource << "#{uri.path[1..-1]}" if uri.path
resource << "?acl" if uri.to_s.include?('?acl')
resource << "?location" if uri.to_s.include?('?location')