forked from claw/flaskpaste
client: also update help text with detected URL
This commit is contained in:
@@ -278,6 +278,10 @@ def client():
|
|||||||
'"server": os.environ.get("FLASKPASTE_SERVER", "http://localhost:5000")',
|
'"server": os.environ.get("FLASKPASTE_SERVER", "http://localhost:5000")',
|
||||||
f'"server": os.environ.get("FLASKPASTE_SERVER", "{server_url}")',
|
f'"server": os.environ.get("FLASKPASTE_SERVER", "{server_url}")',
|
||||||
)
|
)
|
||||||
|
content = content.replace(
|
||||||
|
"http://localhost:5000)",
|
||||||
|
f"{server_url})",
|
||||||
|
)
|
||||||
|
|
||||||
response = Response(content, mimetype="text/x-python")
|
response = Response(content, mimetype="text/x-python")
|
||||||
response.headers["Content-Disposition"] = "attachment; filename=fpaste"
|
response.headers["Content-Disposition"] = "attachment; filename=fpaste"
|
||||||
|
|||||||
Reference in New Issue
Block a user