mirror of
https://github.com/labstack/echo.git
synced 2024-11-24 08:22:21 +02:00
Dropped Go 1.4
Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
parent
57399453be
commit
4f577981b3
@ -1,6 +1,6 @@
|
||||
language: go
|
||||
go:
|
||||
- 1.4
|
||||
- 1.5
|
||||
- tip
|
||||
before_install:
|
||||
- go get github.com/modocache/gover
|
||||
|
3
echo.go
3
echo.go
@ -7,6 +7,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"reflect"
|
||||
"runtime"
|
||||
@ -423,7 +424,7 @@ func (e *Echo) serveFile(dir, file string, c Context) (err error) {
|
||||
d := f
|
||||
|
||||
// Index file
|
||||
file = filepath.Join(file, indexPage)
|
||||
file = path.Join(file, indexPage)
|
||||
f, err = fs.Open(file)
|
||||
if err != nil {
|
||||
if e.autoIndex {
|
||||
|
Loading…
Reference in New Issue
Block a user