Permalink
Please sign in to comment.
Showing
with
19 additions
and 2 deletions.
4
ring-core/src/ring/util/request.clj
17
ring-core/test/ring/util/test/request.clj
| @@ -0,0 +1,17 @@ | ||
| +(ns ring.util.test.request | ||
| + (:use clojure.test | ||
| + ring.util.request)) | ||
| + | ||
| +(deftest test-header-seq | ||
| + (are [r k hs] (= (header-seq r k) hs) | ||
| + {:headers {"accept" "text/html, text/xml"}} | ||
| + "accept" | ||
| + ["text/html" "text/xml"] | ||
| + | ||
| + {:headers {"content-type" "text/html"}} | ||
| + "content-type" | ||
| + ["text/html"] | ||
| + | ||
| + {:headers {}} | ||
| + "x-foo" | ||
| + nil)) |
0 comments on commit
771706c