0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-06-10 06:29:13 +02:00

fix .keys route

This change fixes the output from /{{ username }}.keys so that it can work in
a ~/.ssh/authorized_keys file
This commit is contained in:
stephen mcquay 2015-06-08 00:40:38 -07:00
parent 0647645948
commit 73698d292a

View file

@ -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())
}