crossplane: Add test to 'proxy_hide_header' directive

Signed-off-by: Gabriel M. Dutra <me@dutralabs.xyz>
This commit is contained in:
Gabriel M. Dutra 2024-07-26 17:46:08 -03:00
parent 8a88e62732
commit fd957341d0

View file

@ -69,6 +69,7 @@ func TestCrossplaneTemplate(t *testing.T) {
}
tplConfig.Cfg.DefaultSSLCertificate = defaultCertificate
tplConfig.Cfg.EnableBrotli = true
tplConfig.Cfg.HideHeaders = []string{"x-fake-header", "x-another-fake-header"}
tpl := crossplane.NewTemplate()
tpl.SetMimeFile(mimeFile.Name())