Skip to content

Commit

Permalink
refactor: use correct MIME type for ics
Browse files Browse the repository at this point in the history
Instead of using the default application/octet-stream mime type for ics
format use the appropriate text/calendar mime type according to RFC 2445
(https://www.ietf.org/rfc/rfc2445.txt).
  • Loading branch information
fritzchr authored and abonander committed Dec 12, 2023
1 parent fa5759c commit 985fc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mime_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ pub static MIME_TYPES: &[(&str, &[&str])] = &[
("ice", &["x-conference/x-cooltalk"]),
("icm", &["application/vnd.iccprofile"]),
("ico", &["image/x-icon"]),
("ics", &["application/octet-stream"]),
("ics", &["text/calendar"]),
("idl", &["text/plain"]),
("ief", &["image/ief"]),
("ifb", &["text/calendar"]),
Expand Down

0 comments on commit 985fc5d

Please sign in to comment.