Permalink
Browse files

Merge pull request #55 from Playhem/master

Fix error in URI when we had specific symbols like 슬레이어스휘
  • Loading branch information...
2 parents 79912eb + d1a7d32 commit ef652563a5330da8b131ecba58d48854eab89896 @qoobaa qoobaa committed Dec 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/s3/signature.rb
View
@@ -54,7 +54,7 @@ def self.generate_temporary_url_signature(options)
headers = options[:headers] || {}
headers.merge!("date" => expires.to_i.to_s)
- options.merge!(:resource => "/#{bucket}/#{resource}",
+ options.merge!(:resource => "/#{bucket}/#{URI.escape(resource)}",
:method => options[:method] || :get,
:headers => headers)
signature = canonicalized_signature(options)

0 comments on commit ef65256

Please sign in to comment.