     (instance? InputStream body)
     (let [^InputStream b body]
       (with-open [out (.getOutputStream response)]
-        (copy b out)
+        (io/copy b out)
         (.close b)
         (.flush out)))
     (instance? File body)

    (nil? body)
      nil
    :else
      (throwf "Unrecognized body: %s" body)))

(defn update-servlet-response
  "Update the HttpServletResponse using a response map."

(ns ring.util.servlet
  "Compatibility functions for turning a ring handler into a Java servlet."
  (:require [clojure.java.io :as io])
  (:import (java.io File InputStream FileInputStream)
           (javax.servlet.http HttpServlet
                               HttpServletRequest
