diff --git a/src/main/scala/io/otoroshi/wasm4s/scaladsl/ApikeyHelper.scala b/src/main/scala/io/otoroshi/wasm4s/scaladsl/ApikeyHelper.scala index e142cdc..126c124 100644 --- a/src/main/scala/io/otoroshi/wasm4s/scaladsl/ApikeyHelper.scala +++ b/src/main/scala/io/otoroshi/wasm4s/scaladsl/ApikeyHelper.scala @@ -5,8 +5,6 @@ import java.util.Base64 object ApikeyHelper { def generate(settings: WasmoSettings): String = { - Base64.getEncoder.encodeToString( - s"Basic ${settings.clientId}:${settings.clientSecret}".getBytes(StandardCharsets.UTF_8) - ) + "Basic " + Base64.getEncoder.encodeToString(s"${settings.clientId}:${settings.clientSecret}".getBytes(StandardCharsets.UTF_8)) } }