Fix Equal comparison

This commit is contained in:
Manuel de Brito Fontes 2017-08-23 17:52:17 -03:00
parent e4b5250f46
commit 210ddb797a
2 changed files with 3 additions and 3 deletions

View file

@ -398,12 +398,12 @@ http {
location / {
{{ if .CustomErrors }}
include /etc/nginx/fastcgi_params;
fastcgi_param HTTP_X_Code 503;
fastcgi_param HTTP_X_Code 404;
fastcgi_param HTTP_X_Format $http_accept;
fastcgi_param HTTP_X_Endpoints {{ .DefaultBackendEndpoints }};
fastcgi_pass unix:/var/run/go-fastcgi.sock;
{{ else }}
return 503;
return 404;
{{ end }}
}
}

View file

@ -30,7 +30,7 @@ const DeniedKeyName = "Denied"
// newDefaultServer return an BackendServer to be use as default server that returns 503.
func newDefaultServer() ingress.Endpoint {
return ingress.Endpoint{Address: "127.0.0.1", Port: "8181"}
return ingress.Endpoint{Address: "127.0.0.1", Port: "8181", Target: &api.ObjectReference{}}
}
// newUpstream creates an upstream without servers.