Skip to content

Commit 54691fd

Browse files
authored
Merge pull request kubernetes#126565 from Adarsh-verma-14/remove-duplicate-call
remove duplicate call for ServeMux
2 parents 0ef48e6 + 838d7c9 commit 54691fd

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)