We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I had some issues with carrierwave content type checks and it resulted in founding out the usage of deprecated mime type by marcel
Ref about deprecation - https://www.rfc-editor.org/rfc/rfc9239.html#name-text-javascript
Deprecated alias names for this type: application/javascript ...
application/javascript
Current behaviour:
Marcel::Magic.by_path("tmp/data.js").try(:type) # => "application/javascript"
Expected behaviour:
Marcel::Magic.by_path("tmp/data.js").try(:type) # => "text/javascript"
When I checked the code I find that mime-types for javascript at
marcel/data/tika.xml
Line 335 in 170458c
I suppose that could be a core of the problem.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I had some issues with carrierwave content type checks and it resulted in founding out the usage of deprecated mime type by marcel
Ref about deprecation - https://www.rfc-editor.org/rfc/rfc9239.html#name-text-javascript
Current behaviour:
Expected behaviour:
When I checked the code I find that mime-types for javascript at
marcel/data/tika.xml
Line 335 in 170458c
have different order as in
https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml
used at https://github.com/rails/marcel/blob/main/script/download_tika_data.rb
I suppose that could be a core of the problem.
The text was updated successfully, but these errors were encountered: