Fixed mask

This commit is contained in:
2026-02-18 23:14:08 +01:00
parent a14a989691
commit ce1e0a05d4
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ impl Session {
}
// --- 3. Read mask key ---
if !masked {
if !masked && !self.mask_payload {
// Per spec, client-to-server frames MUST be masked
self.close().await.ok();
return Err(crate::Error::InvalidFrame(