Update template_test.go
This commit is contained in:
parent
338fce1263
commit
214e13c256
1 changed files with 2 additions and 2 deletions
|
@ -386,8 +386,8 @@ func TestBuildAuthSignURL(t *testing.T) {
|
||||||
cases := map[string]struct {
|
cases := map[string]struct {
|
||||||
Input, Output string
|
Input, Output string
|
||||||
}{
|
}{
|
||||||
"default url": {"http://google.com", "http://google.com?rd=$scheme://$http_host$request_uri"},
|
"default url": {"http://google.com", "http://google.com?rd=$pass_access_scheme://$http_host$request_uri"},
|
||||||
"with random field": {"http://google.com?cat=0", "http://google.com?cat=0&rd=$scheme://$http_host$request_uri"},
|
"with random field": {"http://google.com?cat=0", "http://google.com?cat=0&rd=$pass_access_scheme://$http_host$request_uri"},
|
||||||
"with rd field": {"http://google.com?cat&rd=$request", "http://google.com?cat&rd=$request"},
|
"with rd field": {"http://google.com?cat&rd=$request", "http://google.com?cat&rd=$request"},
|
||||||
}
|
}
|
||||||
for k, tc := range cases {
|
for k, tc := range cases {
|
||||||
|
|
Loading…
Reference in a new issue