Skip to content

Commit

Permalink
Merge pull request #45 from gmcgibbon/wav
Browse files Browse the repository at this point in the history
Prefer audio/x-wav for .wav files
  • Loading branch information
pixeltrix authored May 17, 2021
2 parents ac7eded + 7bedd4c commit a2ca764
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/marcel/mime_type/definitions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
Marcel::MimeType.extend "video/mp4", magic: [[4, "ftypisom"], [4, "ftypM4V "]], extensions: %w( mp4 m4v )

Marcel::MimeType.extend "audio/flac", magic: [[0, 'fLaC']], extensions: %w( flac ), parents: "audio/x-flac"
Marcel::MimeType.extend "audio/x-wav", magic: [[0, 'RIFF', [[8, 'WAVE']]]], extensions: %w( wav ), parents: "audio/vnd.wav"

Marcel::MimeType.extend "font/ttf", magic: [[0, "\x00\x01\x00\x00"]], extensions: %w( ttf ttc )
Marcel::MimeType.extend "font/otf", magic: [[0, "OTTO"]], extensions: %w( otf ), parents: "font/ttf"
Expand Down
Binary file removed test/fixtures/magic/audio/vnd.wave/wav.wav
Binary file not shown.
File renamed without changes.
File renamed without changes.

0 comments on commit a2ca764

Please sign in to comment.