Skip to content

Commit

Permalink
Fix SignatureDoesNotMatch caused by URI escape not conform to RFC 3986
Browse files Browse the repository at this point in the history
  • Loading branch information
RiANOl committed Mar 26, 2012
1 parent cfb0ebc commit d1d4a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/aws/core/uri_escape.rb
Expand Up @@ -25,7 +25,7 @@ module UriEscape
protected
def escape value
value = value.encode("UTF-8") if value.respond_to?(:encode)
CGI::escape(value.to_s).gsub('+', '%20')
CGI::escape(value.to_s).gsub('+', '%20').gsub('%7E', '~')
end

# URI-escapes a path without escaping the separators
Expand Down

0 comments on commit d1d4a0e

Please sign in to comment.