about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/local/pager.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim
index 4628b11f..c734b936 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1570,7 +1570,7 @@ proc askDownloadPath(pager: Pager; container: Container; response: Response) =
   if pathname[^1] == '/':
     buf &= "index.html"
   else:
-    buf &= container.url.pathname.afterLast('/')
+    buf &= container.url.pathname.afterLast('/').percentDecode()
   pager.setLineEdit(lmDownload, buf)
   pager.lineData = LineDataDownload(
     outputId: response.outputId,