Browse files

Merge pull request #12 from r0man/data-readers

Custom EDN tags
  • Loading branch information...
2 parents 75ee864 + fb5e41e commit 31500a7c9f8f761aefe2143b4a8469e754528ca3 @ngrunwald committed Mar 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 31500a7

Please sign in to comment.