Skip to content

Commit

Permalink
Add application/cbor media type with extension .cbor (ordinals#2446)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Sep 13, 2023
1 parent 80ef6e7 commit 05c10a7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/media.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub(crate) enum Media {

impl Media {
const TABLE: &'static [(&'static str, Media, &'static [&'static str])] = &[
("application/cbor", Media::Unknown, &["cbor"]),
("application/json", Media::Text, &["json"]),
("application/pdf", Media::Pdf, &["pdf"]),
("application/pgp-signature", Media::Text, &["asc"]),
Expand Down

0 comments on commit 05c10a7

Please sign in to comment.