Closed
Description
The following code should be sufficient to illustrate the issue.
e := echo.New()
e.StripTrailingSlash()
e.Index("public/index.html")
e.Run(":8000")
Assuming that index.html
exists within a public
folder in the same directory as the Go file containing the code above, going to http://localhost:8000
returns a 404
instead of index.html
.
Commenting out the StripTrailingSlash
line fixes the issue.
Metadata
Metadata
Assignees
Labels
No labels