class Sinatra::ShowExceptions
def prefers_plain_text?(env)
def prefers_plain_text?(env) !(Request.new(env).preferred_type("text/plain","text/html") == "text/html") && [/curl/].index { |item| item =~ env["HTTP_USER_AGENT"] } end
def prefers_plain_text?(env) !(Request.new(env).preferred_type("text/plain","text/html") == "text/html") && [/curl/].index { |item| item =~ env["HTTP_USER_AGENT"] } end