public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
Calling /foo.pdf should throw a 406 if :pdf is not a registered mime.
wycats (author)
Tue Mar 04 13:28:50 -0800 2008
commit  7a1c3e23354621f680554ee0bd3e873dff4b22c7
tree    f75b8540acc02b6bc86dce9f6549c258e056b368
parent  539dd037b1845e13c11203ce10986898c52b4fd3
...
286
287
288
289
 
290
291
292
...
286
287
288
 
289
290
291
292
0
@@ -286,7 +286,7 @@ module Merb
0
     # 5. Raise 406 if none found
0
     def _perform_content_negotiation # :nodoc:
0
       raise Merb::ControllerExceptions::NotAcceptable if _provided_formats.empty?
0
- if (fmt = params[:format]) && !fmt.empty? && _provided_formats.include?(fmt.to_sym)
0
+ if (fmt = params[:format]) && !fmt.empty?
0
         return fmt.to_sym
0
       end
0
       accepts = Responder.parse(request.accept).map {|t| t.to_sym}

Comments

    No one has commented yet.