fix to previous check-in

This commit is contained in:
Arvid Norberg
2007-04-19 21:02:33 +00:00
parent 8ef7819a95
commit e5a20b8de6

View File

@@ -56,13 +56,12 @@ void http_connection::get(std::string const& url, time_duration timeout
"Host:" << hostname << "Host:" << hostname <<
"Connection: close\r\n" "Connection: close\r\n"
"\r\n\r\n"; "\r\n\r\n";
m_path = path;
sendbuffer = headers.str(); sendbuffer = headers.str();
start(hostname, boost::lexical_cast<std::string>(port), timeout); start(hostname, boost::lexical_cast<std::string>(port), timeout);
} }
void http_connection::start(std::string const& hostname, std::string const& port void http_connection::start(std::string const& hostname, std::string const& port
, time_duration timeout, bool handle_redirect = true) , time_duration timeout, bool handle_redirect)
{ {
m_redirect = handle_redirect; m_redirect = handle_redirect;
m_timeout = timeout; m_timeout = timeout;