diff -U2 -r /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp --- /var/lib/copr-rpmbuild/results/i2pd-git/upstream-unpacked/Source0/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-10-12 00:39:12.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-10-12 00:15:25.000000000 +0000 @@ -906,15 +906,14 @@ void TorrentsRPCSession::HandleWeb (const boost::beast::http::request& req) { + LogPrint (eLogDebug, "TorrentsRPC: target ", req.target ()); std::string contentType ("text/html"); auto filePath = std::filesystem::path (i2p::fs::GetDataDir ()) / "torrents" / "web"; - std::string target {req.target ()}; - if (target.empty () || target.back() == '/') + if (req.target ().empty () || req.target ().back() == '/') filePath /= "index.html"; else { - - std::filesystem::path urlPath (target); + std::filesystem::path urlPath (req.target ()); filePath /= urlPath.filename (); - if (urlPath.extension () == ".js") + if (urlPath.extension () == "js") contentType = "application/javascript"; }