Skip to content

Commit

Permalink
Merge pull request #8 from mdouchement/fix-urls
Browse files Browse the repository at this point in the history
Add URL encoding for Swift requests
  • Loading branch information
kuon committed Sep 1, 2015
2 parents 9a93d69 + d3cb85a commit b25cf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/swift_storage/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def request(path_or_url,
end

# Cache HTTP session as url with no path (scheme, host, port)
uri = URI.parse(path_or_url)
uri = URI.parse(URI.escape path_or_url)
path = uri.path
uri.path = ''
key = uri.to_s
Expand Down

0 comments on commit b25cf7f

Please sign in to comment.