port number string conversion fix

This commit is contained in:
Arvid Norberg 2009-04-11 00:14:49 +00:00
parent 408f181481
commit 370acde32a
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ void http_connection::get(std::string const& url, time_duration timeout, int pri
{ {
headers << "GET " << path << " HTTP/1.0\r\n" headers << "GET " << path << " HTTP/1.0\r\n"
"Host: " << hostname; "Host: " << hostname;
if (port != default_port) headers << ":" << port; if (port != default_port) headers << ":" << to_string(port).elems;
headers << "\r\n"; headers << "\r\n";
} }