Repository navigation
fix(mime): map the comic book archive extensions to their own types - #974
Merged
Merged
Conversation
aduffeck
approved these changes
Nov 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
reva maps cbz, cbr, cb7 and cbt all to application/x-cbr, as Apache's mime.types does, which uses that one type for every comic book archive. Since 2016 IANA has application/vnd.comicbook+zip for .cbz and application/vnd.comicbook-rar for .cbr; shared-mime-info has those two (with application/x-cbr as an alias of the RAR one) plus application/x-cb7 and application/x-cbt. The container differs per extension (zip, RAR, 7z, tar), so a single type tells a client less than it needs to open the archive, for example to show the cover. cba (ACE) has no type of its own anywhere and keeps application/x-cbr. Happy to discuss if the single type is preferred.
Up for discussion, this is more precise but the more generic type is not wrong.