Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add query options to Fog::Storage::AWS#get_object_https_url

  • Loading branch information...
commit 47983731ee1900a5485cb4c12d469852ecbafea1 1 parent 12a70ff
@meceo meceo authored
View
1  .gitignore
@@ -2,6 +2,7 @@
*.gem
*.rbc
*.sw?
+.rvmrc
.bundle
.DS_Store
coverage
View
7 lib/fog/aws/requests/storage/get_object_https_url.rb
@@ -4,7 +4,7 @@ class AWS
module GetObjectHttpsUrl
- def get_object_https_url(bucket_name, object_name, expires)
+ def get_object_https_url(bucket_name, object_name, expires, options = {})
unless bucket_name
raise ArgumentError.new('bucket_name is required')
end
@@ -15,7 +15,8 @@ def get_object_https_url(bucket_name, object_name, expires)
:headers => {},
:host => @host,
:method => 'GET',
- :path => "#{bucket_name}/#{object_name}"
+ :path => "#{bucket_name}/#{object_name}",
+ :query => options[:query]
}, expires)
end
@@ -48,4 +49,4 @@ class Mock # :nodoc:all
end
end
end
-end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.