mirror of
https://github.com/labstack/echo.git
synced 2025-01-24 03:16:14 +02:00
Use defined const for index.html in Context (#502)
Signed-off-by: Tors Dalid <tors@pocketmath.com>
This commit is contained in:
parent
8686b3c5c7
commit
72bfbc3492
@ -422,7 +422,7 @@ func (c *context) File(file string) error {
|
|||||||
|
|
||||||
fi, _ := f.Stat()
|
fi, _ := f.Stat()
|
||||||
if fi.IsDir() {
|
if fi.IsDir() {
|
||||||
file = filepath.Join(file, "index.html")
|
file = filepath.Join(file, indexPage)
|
||||||
f, err = os.Open(file)
|
f, err = os.Open(file)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return ErrNotFound
|
return ErrNotFound
|
||||||
|
Loading…
x
Reference in New Issue
Block a user