Update async-graphql-lambda

This commit is contained in:
Sunli 2020-05-14 15:30:10 +08:00
parent ed6c87b004
commit 18c3fa6005
2 changed files with 1 additions and 2 deletions

View File

@ -16,5 +16,4 @@ categories = ["network-programming", "asynchronous"]
async-graphql = { path = "..", version = "1.12.4" }
lambda_http = { git = "https://github.com/awslabs/aws-lambda-rust-runtime" }
futures = "0.3.0"
http = "0.2"
async-trait = "0.1.30"

View File

@ -28,7 +28,7 @@ impl GQLRequestExt for Request {
let body = self.body().as_ref();
let ct = self
.headers()
.get(http::header::CONTENT_TYPE)
.get("content-type")
.and_then(|value| value.to_str().ok());
(ct, AllowStdIo::new(Cursor::new(body)))
.into_query_builder_opts(&opts)