Permalink
Browse files
Remove contrib dependencies from r.h.httpcore.
- Loading branch information...
Showing
with
2 additions
and
3 deletions.
-
+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 -?>
|
|
|
([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