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