We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdb61cd commit 149ca28Copy full SHA for 149ca28
test/clj_http/test/core.clj
@@ -24,6 +24,8 @@
24
(condp = [(:request-method req) (:uri req)]
25
[:get "/get"]
26
{:status 200 :body "get"}
27
+ [:get "/empty"]
28
+ {:status 200 :body nil}
29
[:get "/clojure"]
30
{:status 200 :body "{:foo \"bar\" :baz 7M :eggplant {:quux #{1 2 3}}}"
31
:headers {"content-type" "application/clojure"}}
@@ -563,3 +565,9 @@
563
565
(deftest ^:integration t-numeric-headers
564
566
(run-server)
567
(client/request {:method :get :url (localhost "/get") :headers {"foo" 2}}))
568
+
569
+;; Currently failing, see: https://github.com/dakrone/clj-http/issues/257
570
+;; (deftest ^:integration t-empty-response-coercion
571
+;; (run-server)
572
+;; (let [resp (client/get (localhost "/empty") {:as :clojure})]
573
+;; (is (= (:body resp) ""))))
0 commit comments