Update tests for async-graphql-tide.

This commit is contained in:
Sunli 2020-06-01 11:19:49 +08:00
parent cfc1a45992
commit c25980bdf4
2 changed files with 2 additions and 2 deletions

View File

@ -21,5 +21,5 @@ futures = "0.3.4"
async-std = "1.5.0"
[dev-dependencies]
smol = { version = "0.1", features = ["tokio02"] }
smol = { version = "0.1.10", features = ["tokio02"] }
reqwest = "0.10.4"

View File

@ -115,7 +115,7 @@ fn hello() -> Result<()> {
app.at("/").post(|req: Request<AppState>| async move {
let schema = req.state().schema.clone();
let name = &req
.header(&"name".parse().unwrap())
.header("name")
.and_then(|values| values.get(0).map(|value| value.to_string()));
async_graphql_tide::graphql(req, schema, |mut query_builder| {