Browse Source

Merge pull request #3395 from Illirgway/patch-1

Fix bug with unused (replaced with "") CONSUL_HTTP_AUTH in some places

This fixes #3392
pull/3408/head
preetapan 7 years ago committed by GitHub
parent
commit
15e0647176
  1. 4
      api/api.go

4
api/api.go

@ -462,6 +462,10 @@ func NewClient(config *Config) (*Client, error) {
config.Address = parts[1] config.Address = parts[1]
} }
if config.Token == "" {
config.Token = defConfig.Token
}
client := &Client{ client := &Client{
config: *config, config: *config,
} }

Loading…
Cancel
Save