diff options
author | stephen mcquay <stephen@mcquay.me> | 2015-06-08 00:40:38 -0700 |
---|---|---|
committer | stephen mcquay <stephen@mcquay.me> | 2015-06-08 00:40:38 -0700 |
commit | 73698d292a2c60cbe947efc2f62c05d8ffd88277 (patch) | |
tree | 08eb6dbe1fe759c5866a482340d3530660edcde2 /routers | |
parent | 06476459482cfdcb52cbee65d204d92d0ba3844d (diff) | |
download | gitea-73698d292a2c60cbe947efc2f62c05d8ffd88277.tar.gz gitea-73698d292a2c60cbe947efc2f62c05d8ffd88277.zip |
fix .keys route
This change fixes the output from /{{ username }}.keys so that it can work in
a ~/.ssh/authorized_keys file
Diffstat (limited to 'routers')
-rw-r--r-- | routers/user/home.go | 1 |
1 files changed, 1 insertions, 0 deletions
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()) } |