1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-26 02:19:22 +02:00

Refactor TestServer configuration

This commit is contained in:
Nikolay Kim
2018-03-20 11:23:35 -07:00
parent 6cd40df387
commit 8198f5e10a
7 changed files with 266 additions and 14 deletions

View File

@ -329,8 +329,7 @@ impl<S> Stream for WsStream<S> where S: Stream<Item=Bytes, Error=PayloadError> {
match String::from_utf8(tmp) {
Ok(s) =>
Ok(Async::Ready(Some(Message::Text(s)))),
Err(e) => {
println!("ENC: {:?}", e);
Err(_) => {
self.closed = true;
Err(ProtocolError::BadEncoding)
}