remove duplicate call for ServeMux
Kubernetes-commit: 838d7c9049439b5997f0947258e183d677788475
This commit is contained in:
parent
cb239f8776
commit
41e1af4df2
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue