Permalink
Browse files

added support for encoded urls to hyde server

  • Loading branch information...
Grygoriy Fuchedzhy
Grygoriy Fuchedzhy committed Oct 2, 2011
1 parent 7ce5815 commit ffd729918727e1253fc2079be19e9d55a3b13aad
Showing with 1 addition and 2 deletions.
  1. +1 −2 hyde/server.py
View
@@ -55,9 +55,8 @@ def translate_path(self, path):
Finds the absolute path of the requested file by
referring to the `site` variable in the server.
"""
- path = SimpleHTTPRequestHandler.translate_path(self, path)
site = self.server.site
- result = urlparse.urlparse(self.path)
+ result = urlparse.urlparse(urllib.unquote(self.path).decode('utf-8'))
logger.debug("Trying to load file based on request: [%s]" % result.path)
path = result.path.lstrip('/')
res = None

0 comments on commit ffd7299

Please sign in to comment.