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:
parent
8edda8b446
commit
3728f1daa0
22 changed files with 1521 additions and 39 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue