forked from lavina/lavina
fix handling of \r in xmpp stream
This commit is contained in:
parent
c449f18f97
commit
a73bbdb5f1
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue