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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user