1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 15:07:42 +02:00

update all IETF RFC links to new URL format

This commit is contained in:
Rob Ede
2021-12-01 19:42:02 +00:00
parent 697238fadc
commit 0df275c478
27 changed files with 163 additions and 184 deletions

View File

@ -312,9 +312,8 @@ impl WebsocketsRequest {
);
}
// Generate a random key for the `Sec-WebSocket-Key` header.
// a base64-encoded (see Section 4 of [RFC4648]) value that,
// when decoded, is 16 bytes in length (RFC 6455)
// Generate a random key for the `Sec-WebSocket-Key` header which is a base64-encoded
// (see RFC 4648 §4) value that, when decoded, is 16 bytes in length (RFC 6455 §1.3).
let sec_key: [u8; 16] = rand::random();
let key = base64::encode(&sec_key);