forked from zapashcanon/drame
mimetype: add matroska
This commit is contained in:
parent
b45b0928eb
commit
beab915e7a
@ -30,6 +30,7 @@ type t =
|
||||
| Video_avi
|
||||
| Video_mp4
|
||||
| Video_webm
|
||||
| Video_matroska
|
||||
|
||||
let pp fmt mimetype =
|
||||
Fmt.string fmt
|
||||
@ -66,6 +67,7 @@ let pp fmt mimetype =
|
||||
| Unsafe (mimetype, _should_cache) -> mimetype
|
||||
| Video_avi -> "video/x-msvideo"
|
||||
| Video_mp4 -> "video/mp4"
|
||||
| Video_webm -> "video/webm" )
|
||||
| Video_webm -> "video/webm"
|
||||
| Video_matroska -> "video/matroska" )
|
||||
|
||||
let to_string mimetype = Fmt.str "%a" pp mimetype
|
||||
|
@ -31,6 +31,7 @@ type t =
|
||||
| Video_avi
|
||||
| Video_mp4
|
||||
| Video_webm
|
||||
| Video_matroska
|
||||
|
||||
val pp : Format.formatter -> t -> unit
|
||||
|
||||
|
@ -98,7 +98,7 @@ struct
|
||||
| Application_epub | Application_json | Application_jsonld
|
||||
| Application_gz | Application_tar | Application_xml
|
||||
| Application_atom_xml | Application_zip | Application_7z | Text_csv
|
||||
| Video_avi | Video_mp4 | Video_webm ->
|
||||
| Video_avi | Video_mp4 | Video_webm | Video_matroska ->
|
||||
[]
|
||||
end
|
||||
| Error
|
||||
|
Loading…
x
Reference in New Issue
Block a user