Update to http 0.2 (#432)

This commit is contained in:
Sean McArthur
2019-12-02 16:22:26 -08:00
committed by GitHub
parent e7e75bf117
commit eab9c0b410
6 changed files with 17 additions and 10 deletions

View File

@@ -861,7 +861,7 @@ async fn request_options_with_star() {
let uri = uri::Uri::from_parts({
let mut parts = uri::Parts::default();
parts.scheme = Some(uri::Scheme::HTTP);
parts.authority = Some(uri::Authority::from_shared("example.com".into()).unwrap());
parts.authority = Some(uri::Authority::from_static("example.com"));
parts.path_and_query = Some(uri::PathAndQuery::from_static("*"));
parts
})