File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 5
5
### Bug fixes
6
6
7
7
- Fix support for Unicode in redirection templates
8
+ - Properly decode paths in the development server
8
9
9
10
---
10
11
Original file line number Diff line number Diff line change 8
8
from .app_version import version
9
9
10
10
11
- def _to_git_path(path ):
12
- path = posixpath.normpath(urlparse.urlsplit(path) .path)
11
+ def _to_git_path(url ):
12
+ path = posixpath.normpath(urlparse.unquote(url .path) )
13
13
return path[1:]
14
14
15
15
@@ -29,10 +29,10 @@ def do_GET(self):
29
29
self.wfile.write(body)
30
30
31
31
def send_headers(self):
32
- path = _to_git_path(self.path)
32
+ url = urlparse.urlsplit(self.path)
33
+ path = _to_git_path(url)
33
34
try:
34
35
if stat.S_ISDIR(git_utils.file_mode(self.branch, path)):
35
- url = urlparse.urlsplit(self.path)
36
36
if not url.path.endswith('/'):
37
37
# Redirect the browser to a URL with a slash at the end,
38
38
# like Apache.
You can’t perform that action at this time.
0 commit comments