Merge pull request #27 from orignal/master

Merge pull request from orignal/master
This commit is contained in:
chertov 2014-04-06 23:50:56 +04:00
commit 7a89f487b8

View File

@ -272,7 +272,7 @@ namespace http
back_inserter(host_), back_inserter(host_),
std::ptr_fun<int,int>(tolower)); // host is icase 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()) if (port_i != host_.end())
{ {
port_ = std::stoi(std::string(port_i + 1, host_.end())); port_ = std::stoi(std::string(port_i + 1, host_.end()));