Skip to content

Commit 7b027b9

Browse files
committed
fix: unit tests
Signed-off-by: Steven Kreitzer <[email protected]>
1 parent 1182e59 commit 7b027b9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

internal/xds/bootstrap/bootstrap.yaml.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,10 @@ static_resources:
129129
typed_config:
130130
"@type": type.googleapis.com/envoy.extensions.compression.gzip.compressor.v3.Gzip
131131
{{- end }}
132+
{{- if .PrometheusCompressionRemoveAcceptEncodingHeader }}
133+
response_direction_config:
134+
remove_accept_encoding_header: true
135+
{{- end }}
132136
{{- if eq .PrometheusCompressionLibrary "Brotli"}}
133137
{{- if .PrometheusCompressionChooseFirst }}
134138
choose_first: true
@@ -138,6 +142,10 @@ static_resources:
138142
typed_config:
139143
"@type": type.googleapis.com/envoy.extensions.compression.brotli.compressor.v3.Brotli
140144
{{- end }}
145+
{{- if .PrometheusCompressionRemoveAcceptEncodingHeader }}
146+
response_direction_config:
147+
remove_accept_encoding_header: true
148+
{{- end }}
141149
{{- if eq .PrometheusCompressionLibrary "Zstd"}}
142150
{{- if .PrometheusCompressionChooseFirst }}
143151
choose_first: true

0 commit comments

Comments
 (0)