|
Revision 6744, 0.9 kB
(checked in by bitsweat, 1 year ago)
|
Add multipart and url-encoded form mime types.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
Mime::Type.register "*/*", :all |
|---|
| 5 |
Mime::Type.register "text/plain", :text, [], %w(txt) |
|---|
| 6 |
Mime::Type.register "text/html", :html, %w( application/xhtml+xml ), %w( xhtml ) |
|---|
| 7 |
Mime::Type.register "text/javascript", :js, %w( application/javascript application/x-javascript ) |
|---|
| 8 |
Mime::Type.register "text/css", :css |
|---|
| 9 |
Mime::Type.register "text/calendar", :ics |
|---|
| 10 |
Mime::Type.register "text/csv", :csv |
|---|
| 11 |
Mime::Type.register "application/xml", :xml, %w( text/xml application/x-xml ) |
|---|
| 12 |
Mime::Type.register "application/rss+xml", :rss |
|---|
| 13 |
Mime::Type.register "application/atom+xml", :atom |
|---|
| 14 |
Mime::Type.register "application/x-yaml", :yaml, %w( text/yaml ) |
|---|
| 15 |
|
|---|
| 16 |
Mime::Type.register "multipart/form-data", :multipart_form |
|---|
| 17 |
Mime::Type.register "application/x-www-form-urlencoded", :url_encoded_form |
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
Mime::Type.register "application/json", :json, %w( text/x-json ) |
|---|