summaryrefslogtreecommitdiffstats
path: root/routers/web/feed/profile.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/feed/profile.go')
-rw-r--r--routers/web/feed/profile.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/routers/web/feed/profile.go b/routers/web/feed/profile.go
index 0e11f210ce..ffa34572bc 100644
--- a/routers/web/feed/profile.go
+++ b/routers/web/feed/profile.go
@@ -5,7 +5,6 @@
package feed
import (
- "net/http"
"time"
activities_model "code.gitea.io/gitea/models/activities"
@@ -59,7 +58,6 @@ func showUserFeed(ctx *context.Context, formatType string) {
// writeFeed write a feeds.Feed as atom or rss to ctx.Resp
func writeFeed(ctx *context.Context, feed *feeds.Feed, formatType string) {
- ctx.Resp.WriteHeader(http.StatusOK)
if formatType == "atom" {
ctx.Resp.Header().Set("Content-Type", "application/atom+xml;charset=utf-8")
if err := feed.WriteAtom(ctx.Resp); err != nil {