mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-11-22 15:58:03 +00:00
check is host end with .i2p using ends_with
This commit is contained in:
1 parent
d2b9c1a099
commit
2de93be1a3
1 file changed
+1
-1
+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