diff options
Diffstat (limited to 'http/websocket.hpp')
-rw-r--r-- | http/websocket.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/http/websocket.hpp b/http/websocket.hpp index d232c02330..2ef8412886 100644 --- a/http/websocket.hpp +++ b/http/websocket.hpp @@ -92,7 +92,8 @@ class ConnectionImpl : public Connection BMCWEB_LOG_DEBUG("starting connection {}", logPtr(this)); using bf = boost::beast::http::field; - std::string protocolHeader = req.req[bf::sec_websocket_protocol]; + std::string protocolHeader{ + req.getHeaderValue(bf::sec_websocket_protocol)}; ws.set_option(boost::beast::websocket::stream_base::decorator( [session{session}, |