diff --git a/src/core/utils/content_disposition.rs b/src/core/utils/content_disposition.rs index 1eafcc4a..be182548 100644 --- a/src/core/utils/content_disposition.rs +++ b/src/core/utils/content_disposition.rs @@ -7,32 +7,33 @@ const IMAGE_SVG_XML: &str = "image/svg+xml"; /// as defined by MSC2702 const ALLOWED_INLINE_CONTENT_TYPES: [&str; 26] = [ - "text/css", - "text/plain", - "text/csv", + // keep sorted "application/json", "application/ld+json", - "image/jpeg", - "image/gif", - "image/png", - "image/apng", - "image/webp", - "image/avif", - "video/mp4", - "video/webm", - "video/ogg", - "video/quicktime", - "audio/mp4", - "audio/webm", "audio/aac", + "audio/flac", + "audio/mp4", "audio/mpeg", "audio/ogg", - "audio/wave", "audio/wav", - "audio/x-wav", - "audio/x-pn-wav", - "audio/flac", + "audio/wave", + "audio/webm", "audio/x-flac", + "audio/x-pn-wav", + "audio/x-wav", + "image/apng", + "image/avif", + "image/gif", + "image/jpeg", + "image/png", + "image/webp", + "text/css", + "text/csv", + "text/plain", + "video/mp4", + "video/ogg", + "video/quicktime", + "video/webm", ]; /// Returns a Content-Disposition of `attachment` or `inline`, depending on the