Fix: We save the url at imag.content.url, not imag.content.uri

This commit is contained in:
Matthias Beyer 2016-09-05 18:49:12 +02:00
parent 737aab80dc
commit 2956df81f1

View file

@ -47,7 +47,7 @@ impl<'a> Link<'a> {
/// Get a link Url object from a `FileLockEntry`, ignore errors.
fn get_link_uri_from_filelockentry(file: &FileLockEntry<'a>) -> Option<Url> {
file.get_header()
.read("imag.content.uri")
.read("imag.content.url")
.ok()
.and_then(|opt| match opt {
Some(Value::String(s)) => Url::parse(&s[..]).ok(),
@ -58,7 +58,7 @@ impl<'a> Link<'a> {
pub fn get_url(&self) -> Result<Option<Url>> {
let opt = self.link
.get_header()
.read("imag.content.uri");
.read("imag.content.url");
match opt {
Ok(Some(Value::String(s))) => {