From 7d8730e76388a6ed2d30a7bcb9aff731aed38ef3 Mon Sep 17 00:00:00 2001 From: Daniel Esik Date: Fri, 13 Aug 2021 21:40:45 +0300 Subject: [PATCH] Fix Uri building for Proxy (#98) --- .../src/com/goyeau/kubernetes/client/operation/Proxy.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kubernetes-client/src/com/goyeau/kubernetes/client/operation/Proxy.scala b/kubernetes-client/src/com/goyeau/kubernetes/client/operation/Proxy.scala index 16feb78c..e0cc0cde 100644 --- a/kubernetes-client/src/com/goyeau/kubernetes/client/operation/Proxy.scala +++ b/kubernetes-client/src/com/goyeau/kubernetes/client/operation/Proxy.scala @@ -24,8 +24,7 @@ private[client] trait Proxy[F[_]] { httpClient.expect[String]( Request( method, - //TODO: I think this is wrong (hamnis) - config.server.resolve(resourceUri) / name / s"proxy$path", + (config.server.resolve(resourceUri) / name / "proxy").addPath(path.toRelative.renderString), headers = Headers(config.authorization.toList), body = data.fold[EntityBody[F]](EmptyBody)( implicitly[EntityEncoder[F, String]].withContentType(contentType).toEntity(_).body