mirror of
https://github.com/PurpleI2P/i2pd
synced 2024-11-10 08:00:38 +03:00
Merge pull request #27 from orignal/master
Merge pull request from orignal/master
This commit is contained in:
commit
7a89f487b8
2
util.cpp
2
util.cpp
@ -272,7 +272,7 @@ namespace http
|
||||
back_inserter(host_),
|
||||
std::ptr_fun<int,int>(tolower)); // host is icase
|
||||
|
||||
std::string::const_iterator port_i = find(host_.begin(), host_.end(), ':');
|
||||
auto port_i = find(host_.begin(), host_.end(), ':');
|
||||
if (port_i != host_.end())
|
||||
{
|
||||
port_ = std::stoi(std::string(port_i + 1, host_.end()));
|
||||
|
Loading…
Reference in New Issue
Block a user