class Sinatra::Request

def accept

def accept
  @env['HTTP_ACCEPT'].split(',').map { |a| a.strip }
end

def params

Override Rack 0.9.x's #params implementation (see #72 in lighthouse)
def params
  self.GET.update(self.POST)
rescue EOFError => boom
  self.GET
end

def user_agent

def user_agent
  @env['HTTP_USER_AGENT']
end