mirror of
https://gitlab.com/famedly/conduit.git
synced 2024-11-30 05:02:31 +00:00
Merge branch 'quiet-content-disposition' into 'next'
fix: remove content-disposition debug prints See merge request famedly/conduit!725
This commit is contained in:
commit
a9ff97e527
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user