client: also update help text with detected URL

This commit is contained in:
Username
2025-12-20 05:23:00 +01:00
parent d6fb2e92af
commit 677d3e5ba1

View File

@@ -278,6 +278,10 @@ def client():
'"server": os.environ.get("FLASKPASTE_SERVER", "http://localhost:5000")',
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.headers["Content-Disposition"] = "attachment; filename=fpaste"