Read about our upcoming Code of Conduct on this issue

mime_types.rb 653 Bytes
Newer Older
gitlabhq's avatar
gitlabhq committed
1
2
3
4
5
# 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
# Mime::Type.register_alias "text/html", :iphone
6

Riyad Preukschas's avatar
Riyad Preukschas committed
7
8
Mime::Type.register_alias "text/plain", :diff
Mime::Type.register_alias "text/plain", :patch
9
10
11
Mime::Type.register_alias "text/html",  :markdown
Mime::Type.register_alias "text/html",  :md

12
Mime::Type.register "video/mp4",  :mp4, [], [:m4v, :mov]
13
Mime::Type.register "video/webm", :webm
14
Mime::Type.register "video/ogg",  :ogv
15

16
Mime::Type.unregister :json
17
Mime::Type.register 'application/json', :json, [LfsRequest::CONTENT_TYPE, 'application/json']