fix to redirect

This commit is contained in:
2021-09-12 17:49:52 -04:00
parent 60f40bdd55
commit 6013abf15c
4 changed files with 5 additions and 11 deletions
-8
View File
@@ -125,14 +125,6 @@ pub mod defs {
type Error = ();
fn from_form_value(value: &'v RawStr) -> Result<Image, ()> {
/*
println!("{:?}", value);
let file = NamedFile::open(value.to_string());
println!("{:?}", file);
Ok(Image(String::from("pepega")))
*/
let value_uri = match value.url_decode() {
Ok(n) => n,
Err(_) => return Err(()),