Permalink
Browse files

Remove contrib dependencies from r.h.httpcore.

  • Loading branch information...
1 parent f738f5d commit 63412f2f0ba28f564137f09962f4b1e2beef6a21 @mmcgrana committed Oct 26, 2010
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 -?>
([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 63412f2

Please sign in to comment.