mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
change upgrade to Upgrade as connection header value
This commit is contained in:
committed by
Klemens Morgenstern
parent
fd18cfa242
commit
a4718ee87b
@@ -145,7 +145,7 @@ build_response(
|
||||
res.result(http::status::switching_protocols);
|
||||
res.version(req.version());
|
||||
res.set(http::field::upgrade, "websocket");
|
||||
res.set(http::field::connection, "upgrade");
|
||||
res.set(http::field::connection, "Upgrade");
|
||||
{
|
||||
detail::sec_ws_accept_type acc;
|
||||
detail::make_sec_ws_accept(acc, key);
|
||||
|
@@ -632,7 +632,7 @@ build_request(
|
||||
req.method(http::verb::get);
|
||||
req.set(http::field::host, host);
|
||||
req.set(http::field::upgrade, "websocket");
|
||||
req.set(http::field::connection, "upgrade");
|
||||
req.set(http::field::connection, "Upgrade");
|
||||
detail::make_sec_ws_key(key);
|
||||
req.set(http::field::sec_websocket_key, to_string_view(key));
|
||||
req.set(http::field::sec_websocket_version, "13");
|
||||
|
Reference in New Issue
Block a user