Update server.py

This commit is contained in:
Nova Cat 2025-01-13 22:00:07 -08:00
parent e5dd00ae73
commit 6e157e80db

View file

@ -64,7 +64,7 @@ def relay():
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><link rel="stylesheet" href="/style.css"><title>Something went wrong...</title></head><body><h1>Something went wrong...</h1><p>The file that the Gemini server sent couldn\'t be decoded by Gem2Browser.</p></body></html>'
print(mimetype)
if binary:
return bytes(gemraw)
return Response(bytes(gemraw), mimetype="text/gemini" if mimetype=="" else mimetype)
received = received.replace("\r", "")
firstline = True
redirected = False