Skip to content

Commit

Permalink
Merge pull request #698 from anivanovic/antonije/fix_parsing_h2c_config
Browse files Browse the repository at this point in the history
Fix for parsing use_h2c config
  • Loading branch information
taik0 committed Nov 16, 2023
2 parents 6ca4f01 + 396a97c commit e9eccd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit e9eccd1

Please sign in to comment.