We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdcb1a6 commit ccb085fCopy full SHA for ccb085f
src/content/content_location.rs
@@ -52,7 +52,7 @@ impl ContentLocation {
52
// If we successfully parsed the header then there's always at least one
53
// entry. We want the last entry.
54
let value = headers.iter().last().unwrap();
55
- let base = base_url.try_into().unwrap();
+ let base = base_url.try_into()?;
56
let url = base.join(value.as_str().trim()).status(400)?;
57
Ok(Some(Self { url }))
58
}
0 commit comments