class ActionDispatch::FileHandler

def attempt(env)

def attempt(env)
  request = Rack::Request.new env
  if request.get? || request.head?
    if found = find_file(request.path_info, accept_encoding: request.accept_encoding)
      serve request, *found
    end
  end
end