Hi.
I'm using Liberator 0.13 with ring-json 0.3.1 and wrap-json-body so I can refer to POST'd content as {{body :body} :request}.
What I've noticed is that in, for example, the :allowed? handler function, the body is still a ByteArrayInputStream. By :post! it's a Clojure map.
My handler is setup as:
(def app
(-> (routes home-routes app-routes)
(wrap-base-url)
(wrap-json-body)
(handler/site)
))
any chance I've made a rookie mistake? How can I get wrap-json-body to occur before :allowed? is processed?
Kind regards,
Matt