forked from lavina/lavina
1
0
Fork 0

fix handling of \r in xmpp stream

This commit is contained in:
Nikita Vilunov 2023-03-24 01:38:42 +01:00
parent c449f18f97
commit a73bbdb5f1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}