File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
test/ring/middleware/test Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 5
5
[ring.util.request :as req]))
6
6
7
7
(defn- parse-params [params encoding]
8
- (let [params (codec/form-decode params encoding)]
8
+ (let [params (codec/form-decode-map params encoding)]
9
9
(if (map? params) params {})))
10
10
11
11
(defn- assoc-param-map [req k v]
Original file line number Diff line number Diff line change 12
12
(is (empty? (:form-params resp)))
13
13
(is (= {" foo" " bar" " biz" " bat%" } (:params resp)))))
14
14
15
+ (deftest wrap-params-partial-query-params
16
+ (let [req {:query-string " foo" }
17
+ resp (wrapped-echo req)]
18
+ (is (= {" foo" " " } (:query-params resp)))))
19
+
15
20
(deftest wrap-params-query-and-form-params
16
21
(let [req {:query-string " foo=bar"
17
22
:headers {" content-type" " application/x-www-form-urlencoded" }
You can’t perform that action at this time.
0 commit comments