Redirect for app-root should preserve current scheme (#5266)

This commit is contained in:
Manuel Alejandro de Brito Fontes 2020-03-19 15:49:18 -03:00 committed by GitHub
parent 84619d7b08
commit 07b70f68bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 67 additions and 18 deletions

View file

@ -45,7 +45,7 @@ var _ = framework.DescribeAnnotation("app-root", func() {
f.WaitForNginxServer(host,
func(server string) bool {
return strings.Contains(server, `if ($uri = /) {`) &&
strings.Contains(server, `return 302 /foo;`)
strings.Contains(server, `return 302 $scheme://$http_host/foo;`)
})
f.HTTPTestClient().