Skip to content

Commit 05c5cf3

Browse files
committed
fix test
1 parent b504712 commit 05c5cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/content/content_location.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ use std::convert::TryInto;
1414
/// ```
1515
/// # fn main() -> http_types::Result<()> {
1616
/// #
17-
/// use http_types::Response;
17+
/// use http_types::{Response,Url};
1818
/// use http_types::content::{ContentLocation};
1919
///
2020
/// let content_location = ContentLocation::new("https://example.net/".to_string());
2121
///
2222
/// let mut res = Response::new(200);
2323
/// content_location.apply(&mut res);
2424
///
25-
/// let content_location = ContentLocation::from_headers(res)?.unwrap();
25+
/// let content_location = ContentLocation::from_headers(Url::parse("https://example.net/").unwrap(),res)?.unwrap();
2626
/// assert_eq!(content_location.location(), "https://example.net/");
2727
/// #
2828
/// # Ok(()) }

0 commit comments

Comments
 (0)