Skip to content

Commit

Permalink
Add text/calendar mime-type
Browse files Browse the repository at this point in the history
This mime-type is used extensively for CalDav and informally for WebDav.
It was originally defined in [rfc5545].

[rfc5545]: https://www.rfc-editor.org/rfc/rfc5545.html
  • Loading branch information
WhyNotHugo committed Mar 22, 2023
1 parent 938484d commit 6182797
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions mime-parse/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,7 @@ mimes! {
TEXT_PLAIN_UTF_8, "text/plain; charset=utf-8", 4, None, 10;
TEXT_HTML, "text/html", 4;
TEXT_HTML_UTF_8, "text/html; charset=utf-8", 4, None, 9;
TEXT_CALENDAR, "text/calendar", 4;
TEXT_CSS, "text/css", 4;
TEXT_CSS_UTF_8, "text/css; charset=utf-8", 4, None, 8;
TEXT_JAVASCRIPT, "text/javascript", 4;
Expand Down
1 change: 1 addition & 0 deletions src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ mimes! {
TEXT_PLAIN_UTF_8, "text/plain; charset=utf-8";
TEXT_HTML, "text/html";
TEXT_HTML_UTF_8, "text/html; charset=utf-8";
TEXT_CALENDAR, "text/calendar";
TEXT_CSS, "text/css";
TEXT_CSS_UTF_8, "text/css; charset=utf-8";
TEXT_JAVASCRIPT, "text/javascript";
Expand Down

0 comments on commit 6182797

Please sign in to comment.