def parse_range_params(params)
      params.split(';').inject({'q' => '1'}) do |m, p|
        k, v = p.split('=', 2)
        m[k.strip] = v.strip if v
        m
      end
    end
def parse_range_params(params)
      params.split(';').inject({'q' => '1'}) do |m, p|
        k, v = p.split('=', 2)
        m[k.strip] = v.strip if v
        m
      end
    end
Parses a string of media type range parameters into a hash of parameters
 to their respective values.