# File lib/rack/request.rb, line 52 52: def media_type_params 53: return {} if content_type.nil? 54: content_type.split(/\s*[;,]\s*/)[1..-1]. 55: collect { |s| s.split('=', 2) }. 56: inject({}) { |hash,(k,v)| hash[k.downcase] = v ; hash } 57: end