less was not working with http

This commit is contained in:
Lionel Dricot 2022-01-10 15:53:41 +01:00
parent 6a77582606
commit a75cd96f65
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ _MIME_HANDLERS = {
"audio/mpeg": "mpg123 %s",
"audio/ogg": "ogg123 %s",
"image/*": "feh -. %s",
"text/html": "lynx -dump -force_html %s",
#"text/html": "lynx -dump -force_html %s",
}
@ -1225,7 +1225,7 @@ you'll be able to transparently follow links to Gopherspace!""")
self.log["ipv6_bytes_recvd"] += size
def _get_active_tmpfile(self):
if self.gi.get_mime() == "text/gemini":
if self.gi.get_mime() in ["text/gemini","text/html"]:
return self.idx_filename
else:
return self.tmp_filename