diff options
author | James Tucker <jftucker@gmail.com> | 2014-07-13 14:05:42 -0700 |
---|---|---|
committer | James Tucker <jftucker@gmail.com> | 2014-07-13 14:05:42 -0700 |
commit | 01428fe54f003996dc04811fe0216de2258a2e09 (patch) | |
tree | da2a93d2674106330507644f72d4f37d0d46d092 | |
parent | ce99c0d6b804ebb5931ae5bbd8eb946364649eba (diff) | |
download | rack-01428fe54f003996dc04811fe0216de2258a2e09.tar.gz |
Flip to best_q_match, so we provide html to */*
-rw-r--r-- | lib/rack/showexceptions.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/showexceptions.rb b/lib/rack/showexceptions.rb index d0d2d07a..731aea49 100644 --- a/lib/rack/showexceptions.rb +++ b/lib/rack/showexceptions.rb @@ -51,7 +51,7 @@ module Rack end def accepts_html?(env) - env["HTTP_ACCEPT"] && env["HTTP_ACCEPT"].include?("text/html") + Rack::Utils.best_q_match(env["HTTP_ACCEPT"], %w[text/html]) end private :accepts_html? |