websocket: add note about compat removal

this major release still needs to have an incompatible, the next one can
drop setting a protocol client-side, and the one after that can remove
the protocol handling on the server side.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2021-05-18 09:23:37 +02:00
parent 0786b4b98c
commit 480e213f7c

View File

@ -692,6 +692,8 @@ impl WebSocket {
.header(CONNECTION, HeaderValue::from_static("Upgrade"))
.header(SEC_WEBSOCKET_ACCEPT, response_key);
// FIXME: remove compat in PBS 3.x
//
// We currently do not support any subprotocols and we always send binary frames,
// but for backwards compatibilty we need to reply the requested protocols
if let Some(ws_proto) = headers.get(SEC_WEBSOCKET_PROTOCOL) {