Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove contrib dependencies from r.h.httpcore.

  • Loading branch information...
commit 821c675c84eb192055f5a1064b28312a11106965 1 parent 418b8c6
@mmcgrana authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 ring-httpcore-adapter/src/ring/adapter/httpcore.clj
View
5 ring-httpcore-adapter/src/ring/adapter/httpcore.clj
@@ -23,8 +23,7 @@
(java.net URI
ServerSocket)
(java.util.concurrent
- Executors Executor ThreadFactory))
- (:use [clojure.contrib.except :only (throwf)]))
+ Executors Executor ThreadFactory)))
(defmacro ^{:private true} -?>
([form] form)
@@ -110,7 +109,7 @@
(instance? File body)
(FileEntity. body content-type)
:else
- (throwf "Unrecognized body: %s" body))]
+ (throw (Exception. (format "Unrecognized body: %s" body))))]
(when-let [^String type (headers "Content-Type")]
(.setContentType ^AbstractHttpEntity entity type))
(.setEntity response entity))))
Please sign in to comment.
Something went wrong with that request. Please try again.