From 2e55ed0fcccf3bef2e59487d36ce7d3487bc4e59 Mon Sep 17 00:00:00 2001 From: "Adam Bezecny (DHL IT Services)" Date: Tue, 1 Dec 2020 19:21:45 +0100 Subject: [PATCH] comment streamlined --- src/protocol/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs index 54870d9..9184700 100644 --- a/src/protocol/mod.rs +++ b/src/protocol/mod.rs @@ -457,8 +457,7 @@ impl WebSocketContext { // The server MUST close the connection upon receiving a // frame that is not masked. (RFC 6455) // The only exception here is if the user explicitly accepts given - // stream (by tungstenite::server::accept_with_config or tungstenite::server::accept_hdr_with_config) - // with WebSocketConfig.accept_unmasked_frames set to true + // stream by setting WebSocketConfig.accept_unmasked_frames to true if !self.config.accept_unmasked_frames { return Err(Error::Protocol( "Received an unmasked frame from client".into(),