fix var checked (#1997)

This commit is contained in:
Anish Ramasekar 2018-01-28 20:23:25 -06:00 committed by Manuel Alejandro de Brito Fontes
parent d1ae7ff29c
commit 86889532aa

View file

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