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

Updated docs

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana 2015-08-04 19:45:44 -07:00
parent 6fdd292a1f
commit 031c14f0f7
3 changed files with 4 additions and 5 deletions

View File

@ -28,6 +28,7 @@ A fast and unfancy micro web framework for Golang.
- JSON
- JSONP
- XML
- File
- NoContent
- Redirect
- Error

View File

@ -172,10 +172,7 @@ func (c *Context) File(name string) error {
if err != nil {
return err
}
fi, err := file.Stat()
if err != nil {
return err
}
fi, _ := file.Stat()
c.response.Header().Set(ContentDisposition, "attachment; filename="+fi.Name())
_, err = io.Copy(c.response, file)
return err

View File

@ -1,4 +1,4 @@
# Echo <iframe src="https://ghbtns.com/github-btn.html?user=labstack&repo=echo&type=star&count=true&size=large" frameborder="0" scrolling="0" width="160px" height="30px"></iframe>
# Echo
A fast and unfancy micro web framework for Golang.
@ -30,6 +30,7 @@ A fast and unfancy micro web framework for Golang.
- JSON
- JSONP
- XML
- File
- NoContent
- Redirect
- Error