aboutsummaryrefslogtreecommitdiffstats
path: root/modules/context
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-10-16 16:21:16 +0200
committerGitHub <noreply@github.com>2021-10-16 16:21:16 +0200
commit3728f1daa08e4c228db212844612555e9e2904df (patch)
treea47302aa3106ee33643ebcdaa4b2c5fe52349596 /modules/context
parent8edda8b446200545b36432b57d00cd1972a5cb7e (diff)
downloadgitea-3728f1daa08e4c228db212844612555e9e2904df.tar.gz
gitea-3728f1daa08e4c228db212844612555e9e2904df.zip
Add RSS/Atom feed support for user actions (#16002)
Return rss/atom feed for user based on rss url suffix or Content-Type header.
Diffstat (limited to 'modules/context')
-rw-r--r--modules/context/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/context/context.go b/modules/context/context.go
index 6bd934928e..0a603cced5 100644
--- a/modules/context/context.go
+++ b/modules/context/context.go
@@ -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)
}
}