mirror of
https://github.com/rwf2/Rocket.git
synced 2025-02-18 14:42:06 +00:00
Add 'ContentType::EventStream' known media type.
The value maps to "text/event-stream".
This commit is contained in:
parent
bcd62e5373
commit
78352c787d
@ -43,6 +43,7 @@ macro_rules! known_media_types {
|
||||
MOV (is_mov): "quicktime video", "video", "quicktime",
|
||||
MP4 (is_mp4): "MPEG4 Video", "video", "mp4",
|
||||
ZIP (is_zip): "ZIP archive", "application", "zip",
|
||||
EventStream (is_event_stream): "SSE stream", "text", "event-stream",
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user