Update libtransmission/rpc-server.cc

Co-authored-by: Cœur <coeur@gmx.fr>
This commit is contained in:
icy17 2024-04-13 18:21:32 +08:00 committed by GitHub
parent 5c66345414
commit 30d8bb15e5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ void start_server(tr_rpc_server* server)
auto* const httpd = evhttp_new(base);
if (!httpd)
{
tr_logAddError(fmt::format(_("Couldn't instantiate httpd for '{server}'"), fmt::arg("server", server)));
tr_logAddError(fmt::format(_("Couldn't instantiate httpd for '{}'"), static_cast<void*>(server)));
return;
}
evhttp_set_allowed_methods(httpd, EVHTTP_REQ_GET | EVHTTP_REQ_POST | EVHTTP_REQ_OPTIONS);