fix debug handler in proxy

This commit is contained in:
Asim Aslam 2020-01-29 22:31:57 +00:00
parent de3c3b27b2
commit b2980aecb7

View File

@ -40,8 +40,9 @@ func New(name string, p proxy.Proxy) *Server {
// only register this once
once.Do(func() {
server.DefaultRouter.Handle(
// inject the debug handler
server.DefaultRouter.NewHandler(
handler.DefaultHandler,
handler.NewHandler(),
server.InternalHandler(true),
),
)