mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-17 03:24:40 -07:00
Better way to retrieve header support
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -2288,10 +2288,7 @@ func (s *Server) supportsHeaders() bool {
|
||||
if s == nil {
|
||||
return false
|
||||
}
|
||||
s.mu.Lock()
|
||||
ans := s.info.Headers
|
||||
s.mu.Unlock()
|
||||
return ans
|
||||
return !(s.getOpts().NoHeaderSupport)
|
||||
}
|
||||
|
||||
// ID returns the server's ID
|
||||
|
||||
Reference in New Issue
Block a user