1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

update test-server tests

This commit is contained in:
Nikolay Kim
2019-11-19 11:08:03 +06:00
parent 5ab29b2e62
commit 687884fb94
8 changed files with 54 additions and 52 deletions

View File

@ -76,7 +76,8 @@ where
};
// read response and init read body
let (head, framed) = if let (Some(result), framed) = framed.into_future().await {
let res = framed.into_future().await;
let (head, framed) = if let (Some(result), framed) = res {
let item = result.map_err(SendRequestError::from)?;
(item, framed)
} else {