app: correct location header encoding

SIgned-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2022-02-15 14:39:33 -05:00
parent e2d92b5575
commit c2861a1391
1 changed files with 1 additions and 1 deletions

View File

@ -877,7 +877,7 @@ class FileUploadHandler(AuthorizedRequestHandler):
fpath: Optional[str] = item.get('path', None)
if root is not None and fpath is not None:
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
if not isinstance(proto, str):
proto = "http"