Add Markdown (text/markdown) as a known media type.

This commit is contained in:
Sergio Benitez 2021-06-26 12:01:56 -07:00
parent 9063cf0ac2
commit f3e08bf3f6
1 changed files with 5 additions and 0 deletions

View File

@ -44,6 +44,7 @@ macro_rules! known_media_types {
MP4 (is_mp4): "MPEG4 Video", "video", "mp4",
ZIP (is_zip): "ZIP archive", "application", "zip",
EventStream (is_event_stream): "SSE stream", "text", "event-stream",
Markdown (is_markdown): "markdown text", "text", "markdown" ; "charset" => "utf-8",
})
}
@ -91,6 +92,8 @@ macro_rules! known_extensions {
"tiff" => TIFF,
"mov" => MOV,
"zip" => ZIP,
"md" => Markdown,
"markdown" => Markdown,
})
}
@ -110,5 +113,7 @@ macro_rules! known_shorthands {
"multipart" => FormData,
"xml" => XML,
"pdf" => PDF,
"markdown" => Markdown,
"md" => Markdown,
})
}