mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Register war and ear as java
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
require 'mime/types'
|
||||
|
||||
# Register 'ear' and 'war' as java
|
||||
java = MIME::Types['application/java-archive'].first
|
||||
java.extensions << 'ear'
|
||||
java.extensions << 'war'
|
||||
MIME::Types.index_extensions(java)
|
||||
|
||||
module Linguist
|
||||
module Mime
|
||||
Special = YAML.load_file(File.expand_path("../special_mime_types.yml", __FILE__))
|
||||
|
||||
Reference in New Issue
Block a user