Skip to content

Commit 149ca28

Browse files
committed
Add failing test for #257
Currently commented out (since it fails)
1 parent bdb61cd commit 149ca28

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/clj_http/test/core.clj

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424
(condp = [(:request-method req) (:uri req)]
2525
[:get "/get"]
2626
{:status 200 :body "get"}
27+
[:get "/empty"]
28+
{:status 200 :body nil}
2729
[:get "/clojure"]
2830
{:status 200 :body "{:foo \"bar\" :baz 7M :eggplant {:quux #{1 2 3}}}"
2931
:headers {"content-type" "application/clojure"}}
@@ -563,3 +565,9 @@
563565
(deftest ^:integration t-numeric-headers
564566
(run-server)
565567
(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

Comments
 (0)