mirror of
https://github.com/kataras/iris.git
synced 2026-01-05 03:07:38 +00:00
Nothing special here,yet, stay tuned
This commit is contained in:
@@ -715,7 +715,7 @@ func TestCache(t *testing.T) {
|
||||
|
||||
func TestRedirectHTTPS(t *testing.T) {
|
||||
iris.ResetDefault()
|
||||
host := "localhost:5700"
|
||||
host := "localhost:" + strconv.Itoa(getRandomNumber(4545, 5555))
|
||||
expectedBody := "Redirected to https://" + host + "/redirected"
|
||||
|
||||
iris.Get("/redirect", func(ctx *iris.Context) { ctx.Redirect("/redirected") })
|
||||
|
||||
Reference in New Issue
Block a user