Browse Source

added support for encoded urls to hyde server

main
Grygoriy Fuchedzhy 13 years ago
parent
commit
ffd7299187
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      hyde/server.py

+ 1
- 2
hyde/server.py View File

@@ -55,9 +55,8 @@ class HydeRequestHandler(SimpleHTTPRequestHandler):
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


Loading…
Cancel
Save