marcel/aws-s3 — pull request #38 by jjb (2011-10-11 21:46:30+00:00)
Title: Prepare path escaping

Currently, if a file on s3 has a URI reserved character in its name, it's possible for it to make its way into the URL.

Some browsers make a correct guess about dealing with this, and others don't. Depending on one's definition of correct. The point is, they will make different guesses, resulting in the timeout signature being incorrect in some cases.

In this patch are 2 failing tests. I couldn't find an obvious way to make them pass, so I'm submitting this first for your comment. If you agree that they should pass, I can try to find a solution.

(the solution will probably involve splitting the path along **/**, `CGI.escaping`ing each part, then rejoining on **/**)