diff --git a/async-graphql-lambda/Cargo.toml b/async-graphql-lambda/Cargo.toml index 86a51477..d97a9706 100644 --- a/async-graphql-lambda/Cargo.toml +++ b/async-graphql-lambda/Cargo.toml @@ -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" \ No newline at end of file diff --git a/async-graphql-lambda/src/lib.rs b/async-graphql-lambda/src/lib.rs index 1dfec77b..325f96aa 100644 --- a/async-graphql-lambda/src/lib.rs +++ b/async-graphql-lambda/src/lib.rs @@ -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)