From a73bbdb5f16c2ec4be0ca3f5a5ed37de51f392f2 Mon Sep 17 00:00:00 2001 From: Nikita Vilunov Date: Fri, 24 Mar 2023 01:38:42 +0100 Subject: [PATCH] fix handling of \r in xmpp stream --- src/projections/xmpp/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/projections/xmpp/mod.rs b/src/projections/xmpp/mod.rs index 3aefb68..4ac60ed 100644 --- a/src/projections/xmpp/mod.rs +++ b/src/projections/xmpp/mod.rs @@ -274,7 +274,7 @@ async fn socket_final( .read_resolved_event_into_async(reader_buf) .await?; if let Event::Text(ref e) = event { - if **e == [0xAu8] { + if e.iter().all(|x| *x == 0xA) { continue; } }