geforkt von mirrored/vaultwarden
Can't return inside multipart closure
Dieser Commit ist enthalten in:
Ursprung
d420992f8c
Commit
9bf13b7872
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
|
@ -690,7 +690,7 @@ fn post_attachment(uuid: String, data: Data, content_type: &ContentType, headers
|
||||||
|
|
||||||
let mut attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size);
|
let mut attachment = Attachment::new(file_name, cipher.uuid.clone(), name, size);
|
||||||
attachment.key = attachment_key.clone();
|
attachment.key = attachment_key.clone();
|
||||||
attachment.save(&conn)?;
|
attachment.save(&conn).expect("Error saving attachment");
|
||||||
}
|
}
|
||||||
_ => error!("Invalid multipart name"),
|
_ => error!("Invalid multipart name"),
|
||||||
}
|
}
|
||||||
|
|
Laden …
In neuem Issue referenzieren