1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

Update echo_test.go

fix typo
This commit is contained in:
pwli 2020-12-16 09:37:26 +08:00 committed by GitHub
parent 89ec0070b8
commit 2374af470c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,16 +99,16 @@ func TestEchoStatic(t *testing.T) {
givenRoot: "_fixture",
whenURL: "/folder",
expectStatus: http.StatusMovedPermanently,
expectHeaderLocation: "/static/",
expectHeaderLocation: "/folder/",
expectBodyStartsWith: "",
},
{
name: "Directory Redirect with non-root path",
givenPrefix: "/static",
givenRoot: "_fixture",
whenURL: "/folder",
whenURL: "/static",
expectStatus: http.StatusMovedPermanently,
expectHeaderLocation: "/folder/",
expectHeaderLocation: "/static/",
expectBodyStartsWith: "",
},
{