Update server.py

This commit is contained in:
Nova Cat 2025-01-13 16:39:33 -08:00
parent 11beb3a822
commit 69eebbb1d8

View file

@ -57,7 +57,7 @@ def relay():
else:
break
except:
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\' be decoded by Gem2Browser.</p></body></html>'
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>'
received = received.replace("\r", "")
firstline = True
redirected = False