fix var checked

This commit is contained in:
Anish Ramasekar 2018-01-28 20:11:41 -06:00
parent d1ae7ff29c
commit 664c7af630
No known key found for this signature in database
GPG key ID: 649FAC6DAB39EA54

View file

@ -151,7 +151,7 @@ func (a proxy) Parse(ing *extensions.Ingress) (interface{}, error) {
} }
prf, err := parser.GetStringAnnotation("proxy-redirect-from", ing) prf, err := parser.GetStringAnnotation("proxy-redirect-from", ing)
if err != nil || rb == "" { if err != nil || prf == "" {
prf = defBackend.ProxyRedirectFrom prf = defBackend.ProxyRedirectFrom
} }