class Sinatra::Request
def accept
def accept @env['HTTP_ACCEPT'].split(',').map { |a| a.strip } end
def params
def params self.GET.update(self.POST) rescue EOFError => boom self.GET end
def user_agent
def user_agent @env['HTTP_USER_AGENT'] end
def accept @env['HTTP_ACCEPT'].split(',').map { |a| a.strip } end
def params self.GET.update(self.POST) rescue EOFError => boom self.GET end
def user_agent @env['HTTP_USER_AGENT'] end