about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-03-21 00:17:56 +0100
committerbptato <nincsnevem662@gmail.com>2024-03-21 00:17:56 +0100
commit91bcd7b7c7d7e22dfe26d5caa973c98751823f8f (patch)
treedd659c2a3cc893800707041baaeff44c09d5026f
parentc8e6d65b7979dc22dee3c51effd321f92ab17cd1 (diff)
downloadchawan-91bcd7b7c7d7e22dfe26d5caa973c98751823f8f.tar.gz
pager: fix flipped predicate for download
we want to check if it's *not* text.
-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 49af389b..3b75155c 100644
--- a/src/local/pager.nim
+++ b/src/local/pager.nim
@@ -1615,7 +1615,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 and realContentType.startsWithIgnoreCase("text/"):
+  if not mailcapRes.found and not realContentType.startsWithIgnoreCase("text/"):
     pager.askDownloadPath(container, response)
     return
   if mailcapRes.connect: