Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
Fix issue in reading basic_auth flag
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (VMware) <[email protected]>
  • Loading branch information
alexellis committed Sep 10, 2018
1 parent c2fcde9 commit 26fbc82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/read_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (ReadConfig) Read(hasEnv HasEnv) BootstrapConfig {
cfg.ReadTimeout = readTimeout
cfg.WriteTimeout = writeTimeout

cfg.EnableBasicAuth = parseBoolValue("basic_auth", false)
cfg.EnableBasicAuth = parseBoolValue(hasEnv.Getenv("basic_auth"), false)

return cfg
}
Expand Down

0 comments on commit 26fbc82

Please sign in to comment.