Skip to content
Browse files

Fix SignatureDoesNotMatch caused by URI escape not conform to RFC 3986

  • Loading branch information...
1 parent cfb0ebc commit d1d4a0e38b2f88b42321ebeb86420bfb731192d2 RiANOl committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/aws/core/uri_escape.rb
View
2 lib/aws/core/uri_escape.rb
@@ -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

0 comments on commit d1d4a0e

Please sign in to comment.
Something went wrong with that request. Please try again.