Commit 6bcd66b8 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Use more user-friendly path for log file in client front-end.

Use `/logfile.txt` instead of a query string to ease saving it or opening it
in some text viewer or editor.
parent 9a280fbb
......@@ -227,11 +227,6 @@ void ClientFrontEnd::handle_portal( ClientConfig& config
else if (target.find("?logfile=disable") != string::npos) {
else if (target.find("?logfile=get") != string::npos) {
res.set(http::field::content_type, "text/plain");
else if (target.find("?purge_cache=") != string::npos && bep5_cache) {
Cancel cancel;
sys::error_code ec;
......@@ -437,6 +432,9 @@ Response ClientFrontEnd::serve( ClientConfig& config
if (path == "/ca.pem") {
handle_ca_pem(req, res, ss, ca);
} else if (path == "/logfile.txt") {
res.set(http::field::content_type, "text/plain");
} else if (path == "/api/status") {
sys::error_code e;
handle_status( config, udp_port, upnps, reachability
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment