Add RSS/Atom feed support for user actions (#16002)

Return rss/atom feed for user based on rss url suffix or Content-Type header.
This commit is contained in:
6543 2021-10-16 16:21:16 +02:00 committed by GitHub
parent 8edda8b446
commit 3728f1daa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 1521 additions and 39 deletions

View file

@ -320,7 +320,7 @@ func (ctx *Context) PlainText(status int, bs []byte) {
ctx.Resp.WriteHeader(status)
ctx.Resp.Header().Set("Content-Type", "text/plain;charset=utf-8")
if _, err := ctx.Resp.Write(bs); err != nil {
ctx.ServerError("Render JSON failed", err)
ctx.ServerError("Write bytes failed", err)
}
}