diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-11-25 01:19:43 +0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-11-25 04:38:50 +0800 |
commit | 5c9abb6cca4b6de7146c94779a34ae943e4ea4d8 (patch) | |
tree | a9016d52c4c62e0f736ed910e3339da4afaa9d25 /actionpack/lib/action_dispatch/http/mime_type.rb | |
parent | b52a6ba16914d29785e751011e91d7bb91a2356d (diff) | |
download | rails-5c9abb6cca4b6de7146c94779a34ae943e4ea4d8.tar.gz rails-5c9abb6cca4b6de7146c94779a34ae943e4ea4d8.tar.bz2 rails-5c9abb6cca4b6de7146c94779a34ae943e4ea4d8.zip |
processing image/* is an odditity because there is
a test case which expects image/* to not to be
expanded. So I am leaving image/* as it is and
process only text/* and application/*
Diffstat (limited to 'actionpack/lib/action_dispatch/http/mime_type.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index 2b8395fc09..5ea49a23c7 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -81,7 +81,7 @@ module Mime class << self - TRAILING_STAR_REGEXP = /(\w+)\/\*/ + TRAILING_STAR_REGEXP = /(text|application)\/\*/ def lookup(string) LOOKUP[string] |