Skip to content

Commit

Permalink
Merge pull request #1235 from aledbf/fix-equals
Browse files Browse the repository at this point in the history
Fix Equal comparison
  • Loading branch information
aledbf authored Aug 23, 2017
2 parents e4b5250 + 210ddb7 commit 338df02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions controllers/nginx/rootfs/etc/nginx/template/nginx.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/pkg/ingress/controller/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 338df02

Please sign in to comment.