json data types
This commit is contained in:
parent
459cfe231d
commit
0bde426fea
@ -211,9 +211,9 @@ class MainHandler(tornado.web.RequestHandler):
|
||||
ldata["proxied"] = isinstance(proxy.proxy, str)
|
||||
links = [ldata]
|
||||
resp = requests.post(proxy_server, json=links)
|
||||
if isinstance(resp.text, list):
|
||||
if isinstance(resp.text, str):
|
||||
new_links = json.loads(resp.text)
|
||||
if len(new_links) == 1:
|
||||
if isinstance(new_links, list) and len(new_links) == 1:
|
||||
upstream = new_links.pop()
|
||||
if data is None:
|
||||
self.redirect(upstream, status=303)
|
||||
|
Loading…
Reference in New Issue
Block a user