diff --git a/config/config.go b/config/config.go index 80c0f1d5b..26c2e5cee 100644 --- a/config/config.go +++ b/config/config.go @@ -161,7 +161,7 @@ type ServiceConfig struct { TLS *TLS `mapstructure:"tls"` // UseH2C enables h2c support. - UseH2C bool `json:"use_h2c"` + UseH2C bool `mapstructure:"use_h2c"` // run lura in debug mode Debug bool `mapstructure:"debug_endpoint"` diff --git a/config/config_test.go b/config/config_test.go index a9db9c741..0149c301d 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -211,7 +211,7 @@ func TestConfig_init(t *testing.T) { t.Error(err.Error()) } - if hash != "NILRcvZq9y+zinGtRRfG+Zm1ORVE3gI2gjpcgDI3A/Q=" { + if hash != "GdZTJtCn9ZHj3iBR1ZxmZL65HjbTCU8HhbDG8YWudAo=" { t.Errorf("unexpected hash: %s", hash) } }