Skip to content

Commit

Permalink
Rename using preferred func prefix
Browse files Browse the repository at this point in the history
Signed-off-by: David Alger <[email protected]>
  • Loading branch information
davidalger committed Mar 29, 2024
1 parent 8d8cd6e commit 219fb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/xds/translator/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ func (t *Translator) addXdsHTTPFilterChain(xdsListener *listenerv3.Listener, irL
MergeSlashes: irListener.Path.MergeSlashes,
PathWithEscapedSlashesAction: translateEscapePath(irListener.Path.EscapedSlashesAction),
CommonHttpProtocolOptions: &corev3.HttpProtocolOptions{
HeadersWithUnderscoresAction: translateHeadersWithUnderscoresAction(irListener.Headers),
HeadersWithUnderscoresAction: buildHeadersWithUnderscoresAction(irListener.Headers),
},
Tracing: hcmTracing,
}
Expand Down Expand Up @@ -738,7 +738,7 @@ func buildTCPProxyHashPolicy(lb *ir.LoadBalancer) []*typev3.HashPolicy {
return nil
}

func translateHeadersWithUnderscoresAction(in *ir.HeaderSettings) corev3.HttpProtocolOptions_HeadersWithUnderscoresAction {
func buildHeadersWithUnderscoresAction(in *ir.HeaderSettings) corev3.HttpProtocolOptions_HeadersWithUnderscoresAction {
if in != nil {
switch in.WithUnderscoresAction {
case ir.WithUnderscoresActionAllow:
Expand Down

0 comments on commit 219fb2e

Please sign in to comment.