Merge branch 'quiet-content-disposition' into 'next'

fix: remove content-disposition debug prints

See merge request famedly/conduit!725
This commit is contained in:
Matthias Ahouansou 2024-10-10 07:49:17 +00:00
commit a9ff97e527

View File

@ -972,11 +972,9 @@ impl KeyValueDatabase {
if content_disposition.contains("filename=") if content_disposition.contains("filename=")
&& !content_disposition.contains("filename=\"") && !content_disposition.contains("filename=\"")
{ {
println!("{}", &content_disposition);
content_disposition = content_disposition =
content_disposition.replacen("filename=", "filename=\"", 1); content_disposition.replacen("filename=", "filename=\"", 1);
content_disposition.push('"'); content_disposition.push('"');
println!("{}", &content_disposition);
let mut new_key = mediaid[..(mediaid.len() - removed_bytes)].to_vec(); let mut new_key = mediaid[..(mediaid.len() - removed_bytes)].to_vec();
assert!(*new_key.last().unwrap() == 0xff); assert!(*new_key.last().unwrap() == 0xff);