From 78352c787d2bc1d9b964b997d3351fa0d2dd88f5 Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 1 Jun 2021 11:46:47 -0700 Subject: [PATCH] Add 'ContentType::EventStream' known media type. The value maps to "text/event-stream". --- core/http/src/header/known_media_types.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/core/http/src/header/known_media_types.rs b/core/http/src/header/known_media_types.rs index dc86cdeb..bd7b3745 100644 --- a/core/http/src/header/known_media_types.rs +++ b/core/http/src/header/known_media_types.rs @@ -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", }) }