remove duplicate call for ServeMux

Kubernetes-commit: 838d7c9049439b5997f0947258e183d677788475
This commit is contained in:
Adarsh-verma-14 2024-08-07 02:56:49 +05:30 committed by Kubernetes Publisher
parent cb239f8776
commit 41e1af4df2
1 changed files with 0 additions and 1 deletions

View File

@ -77,7 +77,6 @@ func NewAPIServerHandler(name string, s runtime.NegotiatedSerializer, handlerCha
}
gorestfulContainer := restful.NewContainer()
gorestfulContainer.ServeMux = http.NewServeMux()
gorestfulContainer.Router(restful.CurlyRouter{}) // e.g. for proxy/{kind}/{name}/{*}
gorestfulContainer.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) {
logStackOnRecover(s, panicReason, httpWriter)