Skip to content

Commit 838d7c9

Browse files
author
Adarsh-verma-14
committed
remove duplicate call for ServeMux
1 parent 60c4c2b commit 838d7c9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

staging/src/k8s.io/apiserver/pkg/server/handler.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ func NewAPIServerHandler(name string, s runtime.NegotiatedSerializer, handlerCha
7777
}
7878

7979
gorestfulContainer := restful.NewContainer()
80-
gorestfulContainer.ServeMux = http.NewServeMux()
8180
gorestfulContainer.Router(restful.CurlyRouter{}) // e.g. for proxy/{kind}/{name}/{*}
8281
gorestfulContainer.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) {
8382
logStackOnRecover(s, panicReason, httpWriter)

0 commit comments

Comments
 (0)