Skip to content

Commit

Permalink
Merge pull request PurpleI2P#27 from orignal/master
Browse files Browse the repository at this point in the history
Merge pull request from orignal/master
  • Loading branch information
chertov committed Apr 6, 2014
2 parents 006ca11 + ff10dfa commit 7a89f48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()));
Expand Down

0 comments on commit 7a89f48

Please sign in to comment.