Skip to content

Commit eec21e4

Browse files
committed
Add text/calendar mime-type
This mime-type is used extensively for CalDAV and informally for WebDAV. It was originally defined in rfc5545. It is also an official registered IANA mime-type. See: https://www.rfc-editor.org/rfc/rfc5545.html See: https://www.iana.org/assignments/media-types/media-types.xhtml#table-text
1 parent 1ef137c commit eec21e4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

mime-parse/src/constants.rs

+1
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,7 @@ mimes! {
438438
TEXT_PLAIN_UTF_8, "text/plain; charset=utf-8", 4, None, 10;
439439
TEXT_HTML, "text/html", 4;
440440
TEXT_HTML_UTF_8, "text/html; charset=utf-8", 4, None, 9;
441+
TEXT_CALENDAR, "text/calendar", 4;
441442
TEXT_CSS, "text/css", 4;
442443
TEXT_CSS_UTF_8, "text/css; charset=utf-8", 4, None, 8;
443444
TEXT_JAVASCRIPT, "text/javascript", 4;

src/constants.rs

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ mimes! {
8181
TEXT_PLAIN_UTF_8, "text/plain; charset=utf-8";
8282
TEXT_HTML, "text/html";
8383
TEXT_HTML_UTF_8, "text/html; charset=utf-8";
84+
TEXT_CALENDAR, "text/calendar";
8485
TEXT_CSS, "text/css";
8586
TEXT_CSS_UTF_8, "text/css; charset=utf-8";
8687
TEXT_JAVASCRIPT, "text/javascript";

0 commit comments

Comments
 (0)