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" }
|
async-graphql = { path = "..", version = "1.12.4" }
|
||||||
lambda_http = { git = "https://github.com/awslabs/aws-lambda-rust-runtime" }
|
lambda_http = { git = "https://github.com/awslabs/aws-lambda-rust-runtime" }
|
||||||
futures = "0.3.0"
|
futures = "0.3.0"
|
||||||
http = "0.2"
|
|
||||||
async-trait = "0.1.30"
|
async-trait = "0.1.30"
|
@ -28,7 +28,7 @@ impl GQLRequestExt for Request {
|
|||||||
let body = self.body().as_ref();
|
let body = self.body().as_ref();
|
||||||
let ct = self
|
let ct = self
|
||||||
.headers()
|
.headers()
|
||||||
.get(http::header::CONTENT_TYPE)
|
.get("content-type")
|
||||||
.and_then(|value| value.to_str().ok());
|
.and_then(|value| value.to_str().ok());
|
||||||
(ct, AllowStdIo::new(Cursor::new(body)))
|
(ct, AllowStdIo::new(Cursor::new(body)))
|
||||||
.into_query_builder_opts(&opts)
|
.into_query_builder_opts(&opts)
|
||||||
|
Loading…
Reference in New Issue
Block a user