sort ALLOWED_INLINE_CONTENT_TYPES
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
893cc50570
commit
19926ba00d
1 changed files with 20 additions and 19 deletions
|
@ -7,32 +7,33 @@ const IMAGE_SVG_XML: &str = "image/svg+xml";
|
||||||
|
|
||||||
/// as defined by MSC2702
|
/// as defined by MSC2702
|
||||||
const ALLOWED_INLINE_CONTENT_TYPES: [&str; 26] = [
|
const ALLOWED_INLINE_CONTENT_TYPES: [&str; 26] = [
|
||||||
"text/css",
|
// keep sorted
|
||||||
"text/plain",
|
|
||||||
"text/csv",
|
|
||||||
"application/json",
|
"application/json",
|
||||||
"application/ld+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/aac",
|
||||||
|
"audio/flac",
|
||||||
|
"audio/mp4",
|
||||||
"audio/mpeg",
|
"audio/mpeg",
|
||||||
"audio/ogg",
|
"audio/ogg",
|
||||||
"audio/wave",
|
|
||||||
"audio/wav",
|
"audio/wav",
|
||||||
"audio/x-wav",
|
"audio/wave",
|
||||||
"audio/x-pn-wav",
|
"audio/webm",
|
||||||
"audio/flac",
|
|
||||||
"audio/x-flac",
|
"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
|
/// Returns a Content-Disposition of `attachment` or `inline`, depending on the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue