app: correct location header encoding
SIgned-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
e2d92b5575
commit
c2861a1391
|
@ -877,7 +877,7 @@ class FileUploadHandler(AuthorizedRequestHandler):
|
||||||
fpath: Optional[str] = item.get('path', None)
|
fpath: Optional[str] = item.get('path', None)
|
||||||
if root is not None and fpath is not None:
|
if root is not None and fpath is not None:
|
||||||
path_parts = fpath.split("/")
|
path_parts = fpath.split("/")
|
||||||
fpath = "/".join([url_escape(p) for p in path_parts])
|
fpath = "/".join([url_escape(p, plus=False) for p in path_parts])
|
||||||
proto = self.request.protocol
|
proto = self.request.protocol
|
||||||
if not isinstance(proto, str):
|
if not isinstance(proto, str):
|
||||||
proto = "http"
|
proto = "http"
|
||||||
|
|
Loading…
Reference in New Issue