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:
parent
6fdd292a1f
commit
031c14f0f7
@ -28,6 +28,7 @@ A fast and unfancy micro web framework for Golang.
|
||||
- JSON
|
||||
- JSONP
|
||||
- XML
|
||||
- File
|
||||
- NoContent
|
||||
- Redirect
|
||||
- Error
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user