Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

via data_readers.clj.
  • Loading branch information...
commit fb5e41ead584fd3eb5ca275a0d9f53af15c49db1 1 parent 75ee864
@r0man r0man authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  src/ring/middleware/format_params.clj
View
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)"))
Please sign in to comment.
Something went wrong with that request. Please try again.