mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-25 02:45:12 +00:00
Merge pull request #126565 from Adarsh-verma-14/remove-duplicate-call
remove duplicate call for ServeMux
This commit is contained in:
@@ -77,7 +77,6 @@ func NewAPIServerHandler(name string, s runtime.NegotiatedSerializer, handlerCha
|
|||||||
}
|
}
|
||||||
|
|
||||||
gorestfulContainer := restful.NewContainer()
|
gorestfulContainer := restful.NewContainer()
|
||||||
gorestfulContainer.ServeMux = http.NewServeMux()
|
|
||||||
gorestfulContainer.Router(restful.CurlyRouter{}) // e.g. for proxy/{kind}/{name}/{*}
|
gorestfulContainer.Router(restful.CurlyRouter{}) // e.g. for proxy/{kind}/{name}/{*}
|
||||||
gorestfulContainer.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) {
|
gorestfulContainer.RecoverHandler(func(panicReason interface{}, httpWriter http.ResponseWriter) {
|
||||||
logStackOnRecover(s, panicReason, httpWriter)
|
logStackOnRecover(s, panicReason, httpWriter)
|
||||||
|
|||||||
Reference in New Issue
Block a user