by default, mimetype is text/gemini

This commit is contained in:
Lionel Dricot 2021-12-15 11:49:40 +01:00
parent 502668c3c6
commit ce38b49ba6
1 changed files with 1 additions and 1 deletions

View File

@ -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()