diff --git a/async-graphql-tide/src/lib.rs b/async-graphql-tide/src/lib.rs index 2e10af7e..30cc1d76 100644 --- a/async-graphql-tide/src/lib.rs +++ b/async-graphql-tide/src/lib.rs @@ -127,7 +127,7 @@ impl RequestExt for Request { } else { let content_type = self .header(&headers::CONTENT_TYPE) - .and_then(|values| values.first().map(|value| value.to_string())); + .and_then(|values| values.get(0).map(|value| value.to_string())); (content_type, self).into_query_builder_opts(&opts).await } }