reversed logic
This commit is contained in:
parent
23dac1d95d
commit
621f8923ca
2 changed files with 2 additions and 2 deletions
|
@ -473,7 +473,7 @@ http {
|
||||||
ssl_certificate {{ $cfg.DefaultSSLCertificate.PemFileName }};
|
ssl_certificate {{ $cfg.DefaultSSLCertificate.PemFileName }};
|
||||||
ssl_certificate_key {{ $cfg.DefaultSSLCertificate.PemFileName }};
|
ssl_certificate_key {{ $cfg.DefaultSSLCertificate.PemFileName }};
|
||||||
|
|
||||||
{{ if and (gt (len $cfg.CustomHTTPErrors) 0) (not $cfg.ProxyInterceptErrors) }}
|
{{ if and $cfg.CustomHTTPErrors (not $cfg.DisableProxyInterceptErrors) }}
|
||||||
proxy_intercept_errors on;
|
proxy_intercept_errors on;
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,7 @@ var _ = framework.DescribeAnnotation("disable-proxy-intercept-errors", func() {
|
||||||
return strings.Contains(serverConfig, fmt.Sprintf("server_name %s", host))
|
return strings.Contains(serverConfig, fmt.Sprintf("server_name %s", host))
|
||||||
})
|
})
|
||||||
|
|
||||||
ginkgo.By("turning on proxy_intercept_errors directive")
|
ginkgo.By("turning off proxy_intercept_errors directive")
|
||||||
assert.NotContains(ginkgo.GinkgoT(), serverConfig, "proxy_intercept_errors on;")
|
assert.NotContains(ginkgo.GinkgoT(), serverConfig, "proxy_intercept_errors on;")
|
||||||
|
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue