Skip to content

Commit

Permalink
Merge pull request #699 from luraproject/fix_missing_h2c_in_parser_to…
Browse files Browse the repository at this point in the history
…_config

fix missing h2c flag from parser to config
  • Loading branch information
taik0 authored Nov 20, 2023
2 parents e9eccd1 + cb05abe commit c0dd026
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ type parseableServiceConfig struct {
Plugin *Plugin `json:"plugin,omitempty"`
TLS *parseableTLS `json:"tls,omitempty"`
ClientTLS *parseableClientTLS `json:"client_tls,omitempty"`
UseH2C bool `json:"use_h2c,omitempty"`
}

func (p *parseableServiceConfig) normalize() ServiceConfig {
Expand Down Expand Up @@ -193,6 +194,7 @@ func (p *parseableServiceConfig) normalize() ServiceConfig {
DialerKeepAlive: parseDuration(p.DialerKeepAlive),
OutputEncoding: p.OutputEncoding,
Plugin: p.Plugin,
UseH2C: p.UseH2C,
}
if p.TLS != nil {
cfg.TLS = &TLS{
Expand Down

0 comments on commit c0dd026

Please sign in to comment.