1
0
mirror of https://github.com/go-micro/go-micro.git synced 2025-01-23 17:53:05 +02:00

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),
),
)