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-09-01 01:51:30.000000000 +0000 +++ /var/lib/copr-rpmbuild/results/i2pd-git/srpm-unpacked/i2pd-openssl.tar.gz-extract/i2pd-openssl/libi2pd_client/TorrentsRPC.cpp 2026-09-01 00:43:43.000000000 +0000 @@ -540,6 +540,5 @@ if (tunnel) { - static constexpr std::string_view appjson { "application/json" }; - if (m_Request[boost::beast::http::field::content_type].compare (0, appjson.size (), appjson) || // starts with + if (m_Request[boost::beast::http::field::content_type] == "application/json" || m_Request[boost::beast::http::field::content_type] == "application/x-www-form-urlencoded") { @@ -618,8 +617,5 @@ if (!path.empty ()) rpcPath += std::string (path) + "/"; - // insert both pathes rpc and rpc/ - rpcPath += "rpc"; - m_Tunnels.emplace (rpcPath, tunnel); - rpcPath += "/"; + rpcPath += "rpc/"; m_Tunnels.emplace (rpcPath, tunnel); }