mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-10-06 18:38:38 +00:00
check is host end with .i2p using ends_with
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user