-
Notifications
You must be signed in to change notification settings - Fork 523
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AO3-6297: Stop using MimeMagic in downloads code (#4740)
* --no-edit * Update work_download_steps.rb --------- Co-authored-by: Melissa J <gm.jmnzc@gmail.com> Co-authored-by: Brian Austin <brianjaustin@gmail.com>
- Loading branch information
1 parent
bed484d
commit d40d751
Showing
5 changed files
with
25 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
# Be sure to restart your server when you modify this file. | ||
|
||
# Add new mime types for use in respond_to blocks: | ||
# Mime::Type.register "text/richtext", :rtf | ||
|
||
# for azw3 files | ||
Mime::Type.register 'application/x-mobi8-ebook', :azw3 | ||
|
||
# for mobi files | ||
Mime::Type.register 'application/x-mobipocket-ebook', :mobi | ||
|
||
Marcel::MimeType.extend "application/x-mobi8-ebook", extensions: %w[azw3] | ||
Mime::Type.register "application/x-mobi8-ebook", :azw3 | ||
# for epub files | ||
Mime::Type.register 'application/epub', :epub | ||
Marcel::MimeType.extend "application/epub", extensions: %w[epub] | ||
Mime::Type.register "application/epub", :epub | ||
|
||
# for mobi type (already present in marcel types) | ||
Mime::Type.register "application/x-mobipocket-ebook", :mobi |
This file contains 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