Skip to content

Commit 09fb048

Browse files
Update src/content/content_location.rs
Co-authored-by: Jeremiah Senkpiel <[email protected]>
1 parent b537b58 commit 09fb048

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/content_location.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ impl ContentLocation {
5252
// If we successfully parsed the header then there's always at least one
5353
// entry. We want the last entry.
5454
let value = headers.iter().last().unwrap();
55-
let base = base_url.try_into().expect("Could not convert into a valid url");
55+
let base = base_url.try_into()?;
5656
let url = base.join(value.as_str().trim()).status(400)?;
5757
Ok(Some(Self { url }))
5858
}

0 commit comments

Comments
 (0)