diff --git a/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala b/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala index 3bdd8cc..92ce58e 100644 --- a/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala +++ b/smithy4play/src/main/scala/de/innfactory/smithy4play/client/SmithyPlayClientEndpoint.scala @@ -5,11 +5,11 @@ package client import cats.implicits._ import smithy4s.codecs.PayloadError import smithy4s.http._ -import smithy4s.{Blob, Endpoint, Hints, Schema} +import smithy4s.{ Blob, Endpoint, Hints, Schema } import java.net.URLEncoder import java.nio.charset.StandardCharsets -import scala.concurrent.{ExecutionContext, Future} +import scala.concurrent.{ ExecutionContext, Future } private[smithy4play] class SmithyPlayClientEndpoint[Op[_, _, _, _, _], I, E, O, SI, SO]( endpoint: Endpoint[Op, I, E, O, SI, SO], @@ -99,7 +99,10 @@ private[smithy4play] class SmithyPlayClientEndpoint[Op[_, _, _, _, _], I, E, O, def buildPath(metadata: Metadata): String = baseUri + httpEndpoint.path(input).mkString("/") + metadata.queryFlattened - .map(s => URLEncoder.encode(s._1, StandardCharsets.UTF_8.name()) + "=" + URLEncoder.encode(s._2, StandardCharsets.UTF_8.name())) + .map(s => + URLEncoder.encode(s._1, StandardCharsets.UTF_8.name()) + "=" + URLEncoder + .encode(s._2, StandardCharsets.UTF_8.name()) + ) .mkString("?", "&", "") }