Permalink
Browse files

Remove contrib dependencies from r.h.httpcore.

  • Loading branch information...
1 parent 418b8c6 commit 821c675c84eb192055f5a1064b28312a11106965 @mmcgrana committed Oct 26, 2010
Showing with 2 additions and 3 deletions.
  1. +2 −3 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))))

0 comments on commit 821c675

Please sign in to comment.