From 0d9d00655699235292f9074ec8c83f0cc4956fb6 Mon Sep 17 00:00:00 2001 From: Dominic Bou-Samra Date: Mon, 10 Jul 2017 09:59:00 +1000 Subject: [PATCH] feat(api-response): Use the new encoder in the ApiResponse type --- src/main/scala/com/imageintelligence/http4c/ApiResponse.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/com/imageintelligence/http4c/ApiResponse.scala b/src/main/scala/com/imageintelligence/http4c/ApiResponse.scala index 484391b..a89199a 100644 --- a/src/main/scala/com/imageintelligence/http4c/ApiResponse.scala +++ b/src/main/scala/com/imageintelligence/http4c/ApiResponse.scala @@ -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`)) } }