Skip to content

Commit

Permalink
feat(api-response): Use the new encoder in the ApiResponse type
Browse files Browse the repository at this point in the history
  • Loading branch information
dbousamra committed Jul 9, 2017
1 parent 5afdc68 commit 0d9d006
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ object ApiResponse {

implicit def ApiResponseEncoder[A]: EntityEncoder[ApiResponse[A]] = {
EntityEncoder.stringEncoder(Charset.`UTF-8`).contramap[ApiResponse[A]] { r: ApiResponse[A] =>
Argonaut.nospace.pretty(r.render)
Http4sAi.defaultPrettyParams.pretty(r.render)
}.withContentType(`Content-Type`(MediaType.`application/json`, Charset.`UTF-8`))
}
}
Expand Down

0 comments on commit 0d9d006

Please sign in to comment.