class ActionDispatch::Response::RackBody

def respond_to?(method, include_private = false)

def respond_to?(method, include_private = false)
  if method.to_sym == :to_path
    @response.stream.respond_to?(method)
  else
    super
  end
end