Update lib.rs
This commit is contained in:
parent
24c1f53bb6
commit
e543234550
@ -127,7 +127,7 @@ impl<State: Send + Sync + 'static> RequestExt<State> for Request<State> {
|
|||||||
} else {
|
} else {
|
||||||
let content_type = self
|
let content_type = self
|
||||||
.header(&headers::CONTENT_TYPE)
|
.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
|
(content_type, self).into_query_builder_opts(&opts).await
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user