Skip to content

Commit 1bc435b

Browse files
committed
Removed ssl_connection from client.
1 parent 0b49d2b commit 1bc435b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

http/src/http/v2/client/client.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -346,13 +346,7 @@ std::future<response> client::execute(request req, request_options options) {
346346
}
347347
else {
348348
// TODO factory based on HTTP or HTTPS
349-
if (req.is_https()) {
350-
connection = std::make_shared<client_connection::ssl_connection>(pimpl_->io_service_,
351-
pimpl_->options_);
352-
}
353-
else {
354-
connection = std::make_shared<client_connection::normal_connection>(pimpl_->io_service_);
355-
}
349+
connection = std::make_shared<client_connection::normal_connection>(pimpl_->io_service_);
356350
}
357351
return pimpl_->execute(std::make_shared<request_helper>(connection, req, options));
358352
}

0 commit comments

Comments
 (0)