Update for actix-web-4.0.0-beta.6

This commit is contained in:
Sunli 2021-06-05 10:51:11 +08:00
parent b8762953a4
commit 4a2eee997d
2 changed files with 4 additions and 3 deletions

View File

@ -15,9 +15,9 @@ categories = ["network-programming", "asynchronous"]
async-graphql = { path = "../..", version = "=2.11.0" }
actix = "0.11.1"
actix-http = "3.0.0-beta.5"
actix-web = { version = "4.0.0-beta.5", default-features = false }
actix-web-actors = "4.0.0-beta.4"
actix-http = "3.0.0-beta.6"
actix-web = { version = "4.0.0-beta.6", default-features = false }
actix-web-actors = { git = "https://github.com/actix/actix-web.git", rev = "0bb035c" }
futures-util = { version = "0.3.13", default-features = false }
serde_json = "1.0.64"
serde_urlencoded = "0.7.0"

View File

@ -118,6 +118,7 @@ impl FromRequest for BatchRequest {
}
PayloadError::Http2Payload(e) if e.is_io() => e.into_io().unwrap(),
PayloadError::Http2Payload(e) => io::Error::new(ErrorKind::Other, e),
_ => io::Error::new(ErrorKind::Other, "unknown error"),
})
.into_async_read(),
config,