         status (.getStatusLine response)]
     (when cookie-store
       (.setCookieStore context cookie-store))
-    ;; TODO response, conn-mgr, and client needs to be closed
-    {:body (.getContent entity)
+    {:body (coerce-body-entity entity conn-mgr response)
      :length (.getContentLength entity)
      :chunked? (.isChunked entity)
      :repeatable? (.isRepeatable entity)

(defn credentials-provider []
  (BasicCredentialsProvider.))

(defn request [{:keys [cookie-store] :as req}]
  (let [conn-mgr (pooling-conn-mgr)
        client (http-client conn-mgr)

           (org.apache.http.client.methods HttpGet)
           (org.apache.http.client.protocol HttpClientContext)
           (org.apache.http.config RegistryBuilder)
           (org.apache.http.conn HttpClientConnectionManager)
           (org.apache.http.conn.routing HttpRoute)
           (org.apache.http.conn.ssl BrowserCompatHostnameVerifier
                                     SSLConnectionSocketFactory SSLContexts)
