more stuff
This commit is contained in:
parent
c0ce566675
commit
7ae2c4e515
|
@ -33,7 +33,7 @@ class HTTPRequestHandler(BaseHTTPRequestHandler):
|
|||
petname = petname_to_pubkey[p['user'][0]][p["petname"][0]]
|
||||
print(f"http://{pubkey_to_server[petname]}/tunnel?pubkey={petname}&path={p['path'][0]}")
|
||||
res = get(f"http://{pubkey_to_server[petname]}/tunnel?pubkey={petname}&path={p['path'][0]}").text
|
||||
self.wfile.write(res)
|
||||
self.wfile.write(res.encode('utf-8'))
|
||||
elif func == "getinbox":
|
||||
user = p['user'][0]
|
||||
self.wfile.write(str(Fetch(user)).encode('utf-8'))
|
||||
|
|
Loading…
Reference in a new issue