Fork me on GitHub
#pedestal
<
2016-06-01
>
chrisetheridge16:06:41

Is there anything special to parse post params in a request?

chrisetheridge16:06:05

i’m posting to our route, but the params are empty

andrewhr17:06:32

@biscuitpants: have you tried io.pedestal.http.body-params/body-params? It will put form encoded data into request's :form-params attribute

andrewhr17:06:24

you just need to add it to your interceptor chain. Bear in mind body-params is not an interceptor per se, but an interceptor-returning function. This example shows how to use it https://github.com/pedestal/pedestal/blob/master/samples/war-example/src/war_example/service.clj#L20