Commit 6df0f20d authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Check for errors after performing `CONNECT` to Proxy.

parent b497a313
......@@ -709,6 +709,7 @@ Session Client::State::fetch_fresh_through_connect_proxy( const Request& rq
, default_timeout::fetch_http()
, cancel
, yield[ec].tag("connreq"));
return_or_throw_on_error(yield, cancel, ec, Session());
if (connres.result() != http::status::ok) {
// This error code is quite fake, so log the error too.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment