Skip to content

Commit

Permalink
Restore public API
Browse files Browse the repository at this point in the history
  • Loading branch information
bestie committed Aug 13, 2013
1 parent 6eb5f29 commit ac52505
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/rack/showexceptions.rb
Expand Up @@ -45,11 +45,14 @@ def call(env)
]
end

private
def prefers_plaintext?(env)
!accepts_html(env)
end

def accepts_html?(env)
env["HTTP_ACCEPT"] && env["HTTP_ACCEPT"].include?("text/html")
end
private :accepts_html?

def dump_exception(exception)
string = "#{exception.class}: #{exception.message}\n"
Expand Down

0 comments on commit ac52505

Please sign in to comment.