add port number of host field in http requests

This commit is contained in:
Arvid Norberg 2008-11-29 23:00:57 +00:00
parent db8d817977
commit 6519660372
1 changed files with 1 additions and 1 deletions

View File

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