summaryrefslogtreecommitdiff
path: root/boost/beast/websocket/impl/rfc6455.ipp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/beast/websocket/impl/rfc6455.ipp')
-rw-r--r--boost/beast/websocket/impl/rfc6455.ipp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/beast/websocket/impl/rfc6455.ipp b/boost/beast/websocket/impl/rfc6455.ipp
index d688b63d1b..07fdc30686 100644
--- a/boost/beast/websocket/impl/rfc6455.ipp
+++ b/boost/beast/websocket/impl/rfc6455.ipp
@@ -26,9 +26,9 @@ is_upgrade(http::header<true,
return false;
if(req.method() != http::verb::get)
return false;
- if(! http::token_list{req["Connection"]}.exists("upgrade"))
+ if(! http::token_list{req[http::field::connection]}.exists("upgrade"))
return false;
- if(! http::token_list{req["Upgrade"]}.exists("websocket"))
+ if(! http::token_list{req[http::field::upgrade]}.exists("websocket"))
return false;
return true;
}