]> git.proxmox.com Git - proxmox.git/commitdiff
http: websocket: drop Text frame auto-detection from docs
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Feb 2022 16:15:46 +0000 (17:15 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 4 Feb 2022 16:15:49 +0000 (17:15 +0100)
was forgotten in commit 232d87531e4d86412144285b079e78a201eac5c2 when
dropping the bogus frame auto detection

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxmox-http/src/websocket/mod.rs

index 95a6f5131618b966f3a321d112e6bab7bcd02175..9aae8df1acac8359a4a53a85043efe2748040374 100644 (file)
@@ -249,8 +249,7 @@ pub struct WebSocketWriter<W: AsyncWrite + Unpin> {
 }
 
 impl<W: AsyncWrite + Unpin> WebSocketWriter<W> {
-    /// Creates a new WebSocketWriter which will use the given mask (if any),
-    /// and mark the frames as either 'Text' or 'Binary'
+    /// Create a new WebSocketWriter which will use the given mask, if any, creating Binary frames
     pub fn new(mask: Option<[u8; 4]>, writer: W) -> WebSocketWriter<W> {
         WebSocketWriter {
             writer,