diff options
author | Wolfy-J <[email protected]> | 2018-09-23 14:52:55 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2018-09-23 14:52:55 +0300 |
commit | 19d88fc879ba403347726138eb532fb85d38168e (patch) | |
tree | c93c9ddd7a6fe7be3b884458b3ad8e9f4c9b19ec /service/http/service.go | |
parent | bd046974b969af381b3a50513d9f3ab453ed8bbf (diff) |
default configs
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 { |