check is host end with .i2p using ends_with

This commit is contained in:
orignal
2026-10-01 22:21:16 -04:00
parent d2b9c1a099
commit 2de93be1a3
+1 -1
View File
@@ -290,7 +290,7 @@ namespace http
bool URL::is_i2p() const
{
return host.rfind(".i2p") == ( host.size() - 4 );
return host.ends_with (".i2p");
}
void HTTPMsg::add_header(const char *name, const std::string & value, bool replace) {