aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-25 00:49:40 +0800
committerUnknwon <u@gogs.io>2015-07-25 00:49:40 +0800
commit54b58e988d4fac4a3f67feef39d62134352fb07c (patch)
treedb32c6c6860f6b6bacb0c90c32a25b5a3b7c8002 /routers
parentdc4aab9925b46f8ad4b18f7926e2904163c1c5b5 (diff)
parent70d44e9565e372c73d4f0f42273d4899e8e07f75 (diff)
downloadgitea-54b58e988d4fac4a3f67feef39d62134352fb07c.tar.gz
gitea-54b58e988d4fac4a3f67feef39d62134352fb07c.zip
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Diffstat (limited to 'routers')
-rw-r--r--routers/admin/users.go1
-rw-r--r--routers/repo/download.go1
-rw-r--r--routers/user/home.go1
3 files changed, 2 insertions, 1 deletions
diff --git a/routers/admin/users.go b/routers/admin/users.go
index ddcca6390e..12c52236f9 100644
--- a/routers/admin/users.go
+++ b/routers/admin/users.go
@@ -185,6 +185,7 @@ func EditUserPost(ctx *middleware.Context, form auth.AdminEditUserForm) {
u.EncodePasswd()
}
+ u.FullName = form.FullName
u.Email = form.Email
u.Website = form.Website
u.Location = form.Location
diff --git a/routers/repo/download.go b/routers/repo/download.go
index c5e18e005b..b1c5fbc84d 100644
--- a/routers/repo/download.go
+++ b/routers/repo/download.go
@@ -27,7 +27,6 @@ func ServeBlob(ctx *middleware.Context, blob *git.Blob) error {
_, isTextFile := base.IsTextFile(buf)
_, isImageFile := base.IsImageFile(buf)
- 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")
diff --git a/routers/user/home.go b/routers/user/home.go
index 3484e78050..ef05be27a3 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -152,6 +152,7 @@ func ShowSSHKeys(ctx *middleware.Context, uid int64) {
var buf bytes.Buffer
for i := range keys {
buf.WriteString(keys[i].OmitEmail())
+ buf.WriteString("\n")
}
ctx.RenderData(200, buf.Bytes())
}