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:
parent
89ec0070b8
commit
2374af470c
@ -99,16 +99,16 @@ func TestEchoStatic(t *testing.T) {
|
|||||||
givenRoot: "_fixture",
|
givenRoot: "_fixture",
|
||||||
whenURL: "/folder",
|
whenURL: "/folder",
|
||||||
expectStatus: http.StatusMovedPermanently,
|
expectStatus: http.StatusMovedPermanently,
|
||||||
expectHeaderLocation: "/static/",
|
expectHeaderLocation: "/folder/",
|
||||||
expectBodyStartsWith: "",
|
expectBodyStartsWith: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Directory Redirect with non-root path",
|
name: "Directory Redirect with non-root path",
|
||||||
givenPrefix: "/static",
|
givenPrefix: "/static",
|
||||||
givenRoot: "_fixture",
|
givenRoot: "_fixture",
|
||||||
whenURL: "/folder",
|
whenURL: "/static",
|
||||||
expectStatus: http.StatusMovedPermanently,
|
expectStatus: http.StatusMovedPermanently,
|
||||||
expectHeaderLocation: "/folder/",
|
expectHeaderLocation: "/static/",
|
||||||
expectBodyStartsWith: "",
|
expectBodyStartsWith: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user