Permalink
Browse files

Fixed Issue With Uploading Objects With Unicode in the Name

  • Loading branch information...
1 parent e3e8480 commit c0a8a9966d84c70b2b1d41cb1aa9bbb4bda24096 @sudorandom sudorandom committed Oct 26, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 object_storage/transport/__init__.py
@@ -8,6 +8,7 @@
from urlparse import urlparse
from object_storage.errors import ResponseError, NotFound
from object_storage import consts
+from object_storage.utils import unicode_quote
import urllib
import urllib2
@@ -209,5 +210,5 @@ def requote_path(path):
ensure that it is fully and consistently quoted.
"""
parts = path.split("/")
- parts = (urllib.quote(urllib.unquote(part), safe="") for part in parts)
+ parts = (unicode_quote(urllib.unquote(part)) for part in parts)
return "/".join(parts)

0 comments on commit c0a8a99

Please sign in to comment.