Update async-graphql-lambda
This commit is contained in:
parent
ed6c87b004
commit
18c3fa6005
|
@ -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"
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user