From cb6504892642bd58210c9cab5b7ff925f86865e0 Mon Sep 17 00:00:00 2001 From: zryfish Date: Tue, 26 May 2020 14:33:16 +0800 Subject: [PATCH] remove consumes and produces on root webservice (#2120) --- pkg/apiserver/runtime/runtime.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/apiserver/runtime/runtime.go b/pkg/apiserver/runtime/runtime.go index 6b82923ac..7d65b0463 100644 --- a/pkg/apiserver/runtime/runtime.go +++ b/pkg/apiserver/runtime/runtime.go @@ -40,9 +40,7 @@ func init() { func NewWebService(gv schema.GroupVersion) *restful.WebService { webservice := restful.WebService{} - webservice.Path(ApiRootPath + "/" + gv.String()). - Consumes(restful.MIME_JSON). - Produces(restful.MIME_JSON) + webservice.Path(ApiRootPath + "/" + gv.String()) return &webservice }