diff --git a/src/utils/content_disposition.rs b/src/utils/content_disposition.rs index f93f6728..591d5c40 100644 --- a/src/utils/content_disposition.rs +++ b/src/utils/content_disposition.rs @@ -1,5 +1,7 @@ use infer::MatcherType; +use crate::debug_info; + /// Returns a Content-Disposition of `attachment` or `inline`, depending on the /// *parsed* contents of the file uploaded via format magic keys using `infer` /// crate (basically libmagic without needing libmagic). @@ -15,9 +17,11 @@ pub(crate) fn content_disposition_type(buf: &[u8], _content_type: &Option { - if file_type.mime_type().contains("svg") { + if file_type.mime_type().contains("xml") { "attachment" } else { "inline"