refactor(proto): return Error::Incomplete instead of UnexpectedEof

This commit is contained in:
Sean McArthur
2018-01-11 11:45:28 -08:00
parent 30f7f1dbe6
commit 7888451408
3 changed files with 20 additions and 18 deletions

View File

@@ -425,7 +425,7 @@ test! {
body: None,
proxy: false,
error: |err| match err {
&hyper::Error::Io(_) => true,
&hyper::Error::Incomplete => true,
_ => false,
},
}