Skip to content
Snippets Groups Projects
Commit d2faf09c authored by Adrien Béraud's avatar Adrien Béraud Committed by Adrien Béraud
Browse files

tls_session: pass response by reference

Change-Id: I7e35f5d33beba65134ef4d01199b8bc8f3697aee
parent 2bc4c348
Branches
No related tags found
No related merge requests found
...@@ -805,8 +805,8 @@ TlsSession::TlsSessionImpl::sendOcspRequest(const std::string& uri, ...@@ -805,8 +805,8 @@ TlsSession::TlsSessionImpl::sendOcspRequest(const std::string& uri,
if (l) l->error("HTTP OCSP request timeout with error: {:s}", ec.message()); if (l) l->error("HTTP OCSP request timeout with error: {:s}", ec.message());
request->cancel(); request->cancel();
}); });
request->add_on_state_change_callback([this, cb = std::move(cb)](const http::Request::State state, request->add_on_state_change_callback([this, cb = std::move(cb)](http::Request::State state,
const http::Response response) { const http::Response& response) {
if (params_.logger) if (params_.logger)
params_.logger->d("HTTP OCSP request state=%i status_code=%i", params_.logger->d("HTTP OCSP request state=%i status_code=%i",
(unsigned int) state, (unsigned int) state,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment