class ActionController::Renderer

def env_for_request

def env_for_request
  if @env.key?("HTTP_HOST") || controller._routes.nil?
    @env.dup
  else
    controller._routes.default_env.merge(@env)
  end
end