mirror of https://github.com/rwf2/Rocket.git
Add Markdown (text/markdown) as a known media type.
This commit is contained in:
parent
9063cf0ac2
commit
f3e08bf3f6
|
@ -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,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue