From a47fec123bc44ad19feb6296258fdcbb7800a237 Mon Sep 17 00:00:00 2001 From: Maisem Ali <3953239+maisem@users.noreply.github.com> Date: Mon, 13 May 2019 16:45:30 -0700 Subject: [PATCH] List requests should not pass a body. --- pkg/client/typed_client.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/client/typed_client.go b/pkg/client/typed_client.go index 011e1421cf..f23aa8b2d8 100644 --- a/pkg/client/typed_client.go +++ b/pkg/client/typed_client.go @@ -134,7 +134,6 @@ func (c *typedClient) List(ctx context.Context, obj runtime.Object, opts ...List return r.Get(). NamespaceIfScoped(listOpts.Namespace, r.isNamespaced()). Resource(r.resource()). - Body(obj). VersionedParams(listOpts.AsListOptions(), c.paramCodec). Context(ctx). Do().