mimes: only fallback text/ to text mime
1 files changed, 3 insertions(+), 1 deletions(-) M browset.py
M browset.py => browset.py +3 -1
@@ 90,8 90,10 @@ class Browset(App): content = Gemtext(fp=fp, id="content") elif HighlightedCode.can_handle_mime(mime): content = HighlightedCode(fp=fp, id="content", mime=mime) else: elif "text/" in mime: content = Plaintext(fp=fp, id="content") else: content = Plaintext(fp=["Unhandled mimetype: " + mime], id="content") self.mount(content) if __name__ == "__main__":