Update server.py
This commit is contained in:
parent
cdb62f9a30
commit
2eeed2e0ce
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ def relay():
|
|||
if i.split(" ")[0][0] == "3":
|
||||
return redirect("/gem?gemini=" + quote(i.split(" ")[1][9:], safe=''))
|
||||
elif i.split(" ")[0][0] == "1":
|
||||
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><link rel="stylesheet" href="/style.css"><title>Input required</title></head><body><h1>Input required</h1><p>The specified Gemini server wants more data: <pre>{i}</pre></p><br><form action="/gem"><input hidden class="input" value="{url}" type="text" name="gemini"><input class="input" type="text" name="query"><br><input type="submit" class="go" value="Go!"><br></form></body></html>'
|
||||
return f'<!DOCTYPE html>\n<html><head><meta charset="UTF-8"><link rel="stylesheet" href="/style.css"><title>Input required</title></head><body><h1>Input required</h1><p>The specified Gemini server wants more data: <pre>{i}</pre></p><form action="/gem"><input hidden class="input" value="{url}" type="text" name="gemini"><input class="input" type="text" name="query"><br><input type="submit" class="go" value="Go!"><br><br></form></body></html>'
|
||||
elif i.split(" ")[0][0] != "2":
|
||||
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 specified Gemini server returned a status of: {i}</p></body></html>'
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue