by default, mimetype is text/gemini
This commit is contained in:
parent
502668c3c6
commit
ce38b49ba6
2
av98.py
2
av98.py
|
@ -426,7 +426,7 @@ you'll be able to transparently follow links to Gopherspace!""")
|
|||
tmpfile = cached
|
||||
mime,encoding = mimetypes.guess_type(cached,strict=False)
|
||||
#gmi Mimetype is not recognized yet
|
||||
if not mime and cached.endswith('.gmi'):
|
||||
if not mime :
|
||||
mime = "text/gemini"
|
||||
with open(cached,'r') as file:
|
||||
body = file.read()
|
||||
|
|
Loading…
Reference in New Issue