mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-01-22 21:37:18 +01:00
update web
This commit is contained in:
parent
abbe0fc559
commit
736a5be21a
|
@ -19,9 +19,13 @@ def baddies():
|
||||||
netdb.inspect(p.hook, path)
|
netdb.inspect(p.hook, path)
|
||||||
else:
|
else:
|
||||||
netdb.inspect(p.hook)
|
netdb.inspect(p.hook)
|
||||||
body = io.BytesIO()
|
body = io.StringIO()
|
||||||
p.write_blocklist(body)
|
p.write_blocklist(body)
|
||||||
return body
|
v = body.getvalue()
|
||||||
|
body.close()
|
||||||
|
r = flask.Response(v)
|
||||||
|
r.headers["Content-Type"] = 'text/plain'
|
||||||
|
return r
|
||||||
|
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def index():
|
def index():
|
||||||
|
|
Loading…
Reference in a new issue