Browse files

Pass *data-readers* into edn/read-string to handle custom tags defined

via data_readers.clj.
  • Loading branch information...
1 parent 75ee864 commit fb5e41ead584fd3eb5ca275a0d9f53af15c49db1 @r0man r0man committed Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/ring/middleware/format_params.clj
2 src/ring/middleware/format_params.clj
@@ -158,7 +158,7 @@
"Decode a clojure body. The body is merged into the params, so must be a map
or a vector of key value pairs. An empty body is safely handled."
(when-not (.isEmpty (.trim s))
- (edn/read-string s)))
+ (edn/read-string {:readers *data-readers*} s)))
(def clojure-request?
(make-type-request-pred #"^application/(vnd.+)?(x-)?(clojure|edn)"))

0 comments on commit fb5e41e

Please sign in to comment.