Redirect for app-root should preserve current scheme (#5266)
This commit is contained in:
parent
84619d7b08
commit
07b70f68bd
4 changed files with 67 additions and 18 deletions
|
|
@ -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().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue