Update server.py

This commit is contained in:
Nova Cat 2025-01-13 16:26:11 -08:00
parent a2a381d2cf
commit 501d87bfa3

View file

@ -69,7 +69,7 @@ def relay():
else:
firstline = False
if i.split(" ")[1] != "text/gemini":
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>This path returned a file that isn\'t Gemtext, which Gem2Browser doesn\'t support downloading files.</p></body></html>'
return " ".join(received.split("\n")[1:])
else:
if i[0:2] == "# ":
if title == "Something went wrong...":