Skip to content

Commit

Permalink
Merge pull request #3395 from Illirgway/patch-1
Browse files Browse the repository at this point in the history
Fix bug with unused (replaced with "") CONSUL_HTTP_AUTH in some places

This fixes #3392
  • Loading branch information
preetapan committed Aug 18, 2017
2 parents 2ffca8c + e0cc1ce commit 15e0647
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,10 @@ func NewClient(config *Config) (*Client, error) {
config.Address = parts[1]
}

if config.Token == "" {
config.Token = defConfig.Token
}

client := &Client{
config: *config,
}
Expand Down

0 comments on commit 15e0647

Please sign in to comment.