Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed Issue With Uploading Objects With Unicode in the Name

  • Loading branch information...
commit a2490115a78b1d406aa427d9fa403b6b681d6a9e 1 parent c0a8a99
Kevin McDonald sudorandom authored
Showing with 0 additions and 12 deletions.
  1. +0 −12 object_storage/transport/__init__.py
12 object_storage/transport/__init__.py
View
@@ -148,8 +148,6 @@ def __init__(self, conn, method, url, size=None, headers=None):
self.req = httplib.HTTPSConnection(host, port)
else:
self.req = httplib.HTTPConnection(host, port)
-
- path = requote_path(path)
try:
self.req.putrequest('PUT', path)
for key, value in headers.iteritems():
@@ -202,13 +200,3 @@ def __init__(self, conn, method, url, headers=None):
self.req = None
self.headers = headers or {}
-
-def requote_path(path):
- """Re-quote the given URL path component.
-
- This function passes the given path through an unquote/quote cycle to
- ensure that it is fully and consistently quoted.
- """
- parts = path.split("/")
- parts = (unicode_quote(urllib.unquote(part)) for part in parts)
- return "/".join(parts)
Please sign in to comment.
Something went wrong with that request. Please try again.