1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-22 20:37:05 +00:00

Update DONATIONS.md

This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-01-18 13:56:55 +02:00
parent 306a709c04
commit b7b77b62d3
2 changed files with 4 additions and 3 deletions

View File

@@ -953,8 +953,8 @@ func (ctx *Context) ServeFile(filename string, gzipCompression bool) error {
//
// Use this instead of ServeFile to 'force-download' bigger files to the client
func (ctx *Context) SendFile(filename string, destinationName string) {
ctx.ServeFile(filename, false)
ctx.ResponseWriter.Header().Set(contentDisposition, "attachment;filename="+destinationName)
ctx.ServeFile(filename, false)
}
// StreamWriter registers the given stream writer for populating