     (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)

(ns ring.util.servlet
  "Compatibility functions for turning a ring handler into a Java servlet."
  (:use [clojure.contrib.except :only (throwf)]
        [clojure.contrib.duck-streams :only (copy)])
  (:import (java.io File InputStream FileInputStream)
           (javax.servlet.http HttpServlet
                               HttpServletRequest

    (nil? body)
      nil
    :else
      (throw (Exception. (format "Unrecognized body: %s" body)))))

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