Update server.py
This commit is contained in:
parent
e5dd00ae73
commit
6e157e80db
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue