summaryrefslogtreecommitdiff
path: root/http/http2_connection.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'http/http2_connection.hpp')
-rw-r--r--http/http2_connection.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/http/http2_connection.hpp b/http/http2_connection.hpp
index 7e8224eedf..4b2d186f07 100644
--- a/http/http2_connection.hpp
+++ b/http/http2_connection.hpp
@@ -265,7 +265,7 @@ class HTTP2Connection :
std::make_shared<bmcweb::AsyncResp>(std::move(it->second.res));
#ifndef BMCWEB_INSECURE_DISABLE_AUTHX
thisReq.session = crow::authentication::authenticate(
- {}, thisRes, thisReq.method(), thisReq.req, nullptr);
+ {}, asyncResp->res, thisReq.method(), thisReq.req, nullptr);
if (!crow::authentication::isOnAllowlist(thisReq.url().path(),
thisReq.method()) &&
thisReq.session == nullptr)
@@ -274,7 +274,7 @@ class HTTP2Connection :
forward_unauthorized::sendUnauthorized(
thisReq.url().encoded_path(),
thisReq.getHeaderValue("X-Requested-With"),
- thisReq.getHeaderValue("Accept"), thisRes);
+ thisReq.getHeaderValue("Accept"), asyncResp->res);
}
else
#endif // BMCWEB_INSECURE_DISABLE_AUTHX