1
0
Fork 0
forked from lthn/blockchain

fixed url parse error for RPCs

This commit is contained in:
sowle 2024-12-04 02:46:45 +01:00
parent 1701b97f86
commit 95dabbe63a
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -901,7 +901,7 @@ namespace epee
{
http::url_content u_c{};
bool r = parse_url(url, u_c);
CHECK_AND_ASSERT_MES(!tr.is_connected() && r && !u_c.host.empty(), false, "failed to parse url: " << url);
CHECK_AND_ASSERT_MES(tr.is_connected() || u_c.host.empty() || r, false, "failed to parse url: " << url);
r = invoke_request(u_c, tr, timeout, ppresponse_info, method, body, additional_params);
return r;
}