fix to previous check-in
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user