diff --git a/go.mod b/go.mod index b8ef7ce..965e570 100644 --- a/go.mod +++ b/go.mod @@ -25,7 +25,7 @@ require ( github.com/sirupsen/logrus v1.4.1 github.com/stretchr/objx v0.2.0 // indirect github.com/stretchr/testify v1.3.0 - github.com/thomseddon/go-flags v1.4.1-0.20190507181358-ce437f05b7fb + github.com/thomseddon/go-flags v1.4.1-0.20190507184247-a3629c504486 github.com/vulcand/predicate v1.1.0 // indirect golang.org/x/crypto v0.0.0-20190422183909-d864b10871cd // indirect golang.org/x/net v0.0.0-20190420063019-afa5a82059c6 // indirect diff --git a/go.sum b/go.sum index a32bac2..4535b11 100644 --- a/go.sum +++ b/go.sum @@ -59,6 +59,8 @@ github.com/thomseddon/go-flags v1.4.0 h1:cHj56pbnQxlGo2lx2P8f0Dph4TRYKBJzoPuF2lq github.com/thomseddon/go-flags v1.4.0/go.mod h1:NK9eZpNBmSKVxvyB/MExg6jW0Bo9hQyAuCP+b8MJFow= github.com/thomseddon/go-flags v1.4.1-0.20190507181358-ce437f05b7fb h1:L311/fJ7WXmFDDtuhf22PkVJqZpqLbEsmGSTEGv7ZQY= github.com/thomseddon/go-flags v1.4.1-0.20190507181358-ce437f05b7fb/go.mod h1:NK9eZpNBmSKVxvyB/MExg6jW0Bo9hQyAuCP+b8MJFow= +github.com/thomseddon/go-flags v1.4.1-0.20190507184247-a3629c504486 h1:hk17f4niAl4e6viTj2uf/fpfACa6QPmrtMDAo+1tifE= +github.com/thomseddon/go-flags v1.4.1-0.20190507184247-a3629c504486/go.mod h1:NK9eZpNBmSKVxvyB/MExg6jW0Bo9hQyAuCP+b8MJFow= github.com/vulcand/predicate v1.1.0 h1:Gq/uWopa4rx/tnZu2opOSBqHK63Yqlou/SzrbwdJiNg= github.com/vulcand/predicate v1.1.0/go.mod h1:mlccC5IRBoc2cIFmCB8ZM62I3VDb6p2GXESMHa3CnZg= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= diff --git a/internal/config.go b/internal/config.go index a5a78e0..3c9eb39 100644 --- a/internal/config.go +++ b/internal/config.go @@ -41,7 +41,7 @@ type Config struct { Rules map[string]*Rule `long:"rules.." description:"Rule definitions, param can be: \"action\" or \"rule\""` // Filled during transformations - Secret []byte `json:"-"` + Secret []byte `json:"-"` Lifetime time.Duration // Legacy @@ -141,7 +141,7 @@ func NewConfig(args []string) (Config, error) { } func (c *Config) parseFlags(args []string) error { - p := flags.NewParser(c, flags.Default | flags.IniUnknownOptionHandler) + p := flags.NewParser(c, flags.Default|flags.IniUnknownOptionHandler) p.UnknownOptionHandler = c.parseUnknownFlag i := flags.NewIniParser(p) diff --git a/internal/server.go b/internal/server.go index 1de9480..c2ccb37 100644 --- a/internal/server.go +++ b/internal/server.go @@ -175,7 +175,7 @@ func (s *Server) logger(r *http.Request, rule, msg string) *logrus.Entry { // Log request logger.WithFields(logrus.Fields{ - "rule": rule, + "rule": rule, "headers": r.Header, }).Debug(msg)