LibCore: Use URL in CHttpRequest

Now there's just CHttpRequest::set_url(URL), no need to specify the
host, port and path manually anymore.

Updated ChanViewer and Downloader for the API change.
This commit is contained in:
Andreas Kling 2019-08-10 19:32:03 +02:00
commit ee83b1bcf4
Notes: sideshowbarker 2024-07-19 12:46:06 +09:00
6 changed files with 11 additions and 19 deletions

View file

@ -121,7 +121,7 @@ void CHttpJob::start()
dbg() << "CHttpJob: on_connected callback";
on_socket_connected();
};
bool success = m_socket->connect(m_request.hostname(), m_request.port());
bool success = m_socket->connect(m_request.url().host(), m_request.url().port());
if (!success)
return did_fail(CNetworkJob::Error::ConnectionFailed);
}