Skip to content

Commit

Permalink
Don't care about trailing spaces in bridge-config... man !
Browse files Browse the repository at this point in the history
  • Loading branch information
abourget committed May 5, 2017
1 parent 0200795 commit da159aa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/bridge/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ func NewFromDefaultConfig() (bridge *Bridge, err error) {
func NewFromString(conf string) (bridge *Bridge, err error) {
var content []byte

conf = strings.TrimSpace(conf)

if strings.HasPrefix(conf, "{") {
content = []byte(conf)
} else {
Expand Down

0 comments on commit da159aa

Please sign in to comment.