Skip to content

Instantly share code, notes, and snippets.

@mtodd
Created March 22, 2011 02:10
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mtodd/880637 to your computer and use it in GitHub Desktop.
git.diff
diff --git a/lib/fog/storage/aws.rb b/lib/fog/storage/aws.rb
index dfb66a0..0ec0d6d 100644
--- a/lib/fog/storage/aws.rb
+++ b/lib/fog/storage/aws.rb
@@ -65,7 +65,7 @@ module Fog
query << "AWSAccessKeyId=#{@aws_access_key_id}"
query << "Signature=#{CGI.escape(signature(params))}"
query << "Expires=#{params[:headers]['Date']}"
- "https://#{@host}/#{params[:path]}?#{query.join('&')}"
+ "#{@scheme}://#{@host}/#{params[:path]}?#{query.join('&')}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment