mirror of
				https://github.com/fog/fog.git
				synced 2022-11-09 13:51:43 -05:00 
			
		
		
		
	add query options to Fog::Storage::AWS#get_object_https_url
This commit is contained in:
		
							parent
							
								
									12a70ffe80
								
							
						
					
					
						commit
						47983731ee
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		
							
								
								
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -2,6 +2,7 @@
 | 
			
		|||
*.gem
 | 
			
		||||
*.rbc
 | 
			
		||||
*.sw?
 | 
			
		||||
.rvmrc
 | 
			
		||||
.bundle
 | 
			
		||||
.DS_Store
 | 
			
		||||
coverage
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -4,7 +4,7 @@ module Fog
 | 
			
		|||
 | 
			
		||||
      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 @@ module Fog
 | 
			
		|||
            :headers  => {},
 | 
			
		||||
            :host     => @host,
 | 
			
		||||
            :method   => 'GET',
 | 
			
		||||
            :path     => "#{bucket_name}/#{object_name}"
 | 
			
		||||
            :path     => "#{bucket_name}/#{object_name}",
 | 
			
		||||
            :query    => options[:query]
 | 
			
		||||
          }, expires)
 | 
			
		||||
        end
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -48,4 +49,4 @@ module Fog
 | 
			
		|||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue