diff options
Diffstat (limited to 'service/http/service.go')
-rw-r--r-- | service/http/service.go | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/service/http/service.go b/service/http/service.go index 94524897..6bf6e33f 100644 --- a/service/http/service.go +++ b/service/http/service.go @@ -87,11 +87,8 @@ func (s *Service) Serve() error { s.rr.Listen(s.listener) s.srv.Listen(s.listener) - if len(s.middleware) == 0 { - s.http.Handler = s.srv - } else { - s.http.Handler = s - } + s.http.Handler = s + s.mu.Unlock() if err := rr.Start(); err != nil { |