From da159aa5a9c676b795db8de6291a6a8d497f4e42 Mon Sep 17 00:00:00 2001 From: Alexandre Bourget Date: Fri, 5 May 2017 14:39:58 -0400 Subject: [PATCH] Don't care about trailing spaces in bridge-config... man ! --- pkg/bridge/auth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/bridge/auth.go b/pkg/bridge/auth.go index a0aeda3..a5d9eea 100644 --- a/pkg/bridge/auth.go +++ b/pkg/bridge/auth.go @@ -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 {