Skip to content

Commit

Permalink
Ensure proper format for IE (Ruby 2.1). Ref #104
Browse files Browse the repository at this point in the history
  • Loading branch information
jodosha committed May 4, 2015
1 parent 31e929b commit d29be96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack-patch.rb
Expand Up @@ -16,7 +16,8 @@ def self.best_q_match(q_value_header, available_mimes)
end.compact

# See https://github.com/lotus/controller/issues/59
values = values.reverse if RUBY_VERSION >= '2.2.0' || Lotus::Utils.rubinius?
# See https://github.com/lotus/controller/issues/104
values = values.reverse if RUBY_VERSION >= '2.1.0' || Lotus::Utils.rubinius?

value = values.sort_by do |match, quality|
(match.split('/', 2).count('*') * -10) + quality
Expand Down

0 comments on commit d29be96

Please sign in to comment.