From 370acde32ac1464ceb82651c71be617f20689477 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 11 Apr 2009 00:14:49 +0000 Subject: [PATCH] port number string conversion fix --- src/http_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http_connection.cpp b/src/http_connection.cpp index a97540a95..34756097e 100644 --- a/src/http_connection.cpp +++ b/src/http_connection.cpp @@ -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" "Host: " << hostname; - if (port != default_port) headers << ":" << port; + if (port != default_port) headers << ":" << to_string(port).elems; headers << "\r\n"; }