- Due to testing purpose, data of [try.gogs.io](https://try.gogs.io) has been reset in **Jan 28, 2015** and will reset multiple times after. Please do **NOT** put your important data on the site.
- Demo site [try.gogs.io](https://try.gogs.io) is running under `dev` branch.
+- If you think there are vulnerabilities in the project, please talk private to **u@gogs.io**, thanks!
#### Other language version
# This file lists all PUBLIC individuals having contributed content to the translation.
# Order of name is meaningless.
+Christoph Kisfeld <christoph.kisfeld@gmail.com>
Thomas Fanninger <gogs.thomas@fanninger.at>
Ćukasz Jan Niemier <lukasz@niemier.pl>
-Lafriks <lafriks@gmail.com>
\ No newline at end of file
+Lafriks <lafriks@gmail.com>
"github.com/gogits/gogs/modules/setting"
)
-const APP_VER = "0.5.12.0130 Beta"
+const APP_VER = "0.5.12.0131 Beta"
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
buf = buf[:n]
}
- contentType, isTextFile := base.IsTextFile(buf)
+ _, isTextFile := base.IsTextFile(buf)
_, isImageFile := base.IsImageFile(buf)
- ctx.Resp.Header().Set("Content-Type", contentType)
+ ctx.Resp.Header().Set("Content-Type", "text/plain")
if !isTextFile && !isImageFile {
ctx.Resp.Header().Set("Content-Disposition", "attachment; filename="+path.Base(ctx.Repo.TreeName))
ctx.Resp.Header().Set("Content-Transfer-Encoding", "binary")
}
ctx.Resp.Write(buf)
- io.Copy(ctx.Resp, dataRc)
- return nil
+ _, err = io.Copy(ctx.Resp, dataRc)
+ return err
}
func SingleDownload(ctx *middleware.Context) {
-0.5.12.0130 Beta
\ No newline at end of file
+0.5.12.0131 Beta
\ No newline at end of file