about summary refs log tree commit diff stats
path: root/src/local/pager.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-19 21:41:30 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-19 21:46:34 +0100
commit4b7149a68e70737ea05514bda26cd64dc8d5909a (patch)
tree8110f6dcc097f8618feface767b41c2ffb27f263 /src/local/pager.nim
parent29759b63db0419272a775c333130c12fcb9c0261 (diff)
downloadchawan-4b7149a68e70737ea05514bda26cd64dc8d5909a.tar.gz
pager: do not ask to download text/*
it's text, so we can display it anyway.
Diffstat (limited to 'src/local/pager.nim')
-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 e7d771c0..3a9c3aa7 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1582,7 +1582,7 @@ proc connected(pager: Pager; container: Container; response: Response) =
     container.contentType.get & ";charset=" & $container.charset
   let mailcapRes = pager.checkMailcap(container, istream, response.outputId,
     realContentType)
-  if not mailcapRes.found:
+  if not mailcapRes.found and container.contentType.get.until('/') != "text":
     pager.setLineEdit(lmDownload,
       pager.config.external.download_dir &
       container.url.pathname.afterLast('/'))