diff options
author | 2023-11-27 14:00:57 +0000 | |
---|---|---|
committer | 2023-11-27 14:00:57 +0000 | |
commit | 74700cc8034980334e7df466f313287a41d2b8a6 (patch) | |
tree | 63ab8912c813eefba8a492e0d0489f4e5fe59446 /internal/web/tag.go | |
parent | [chore]: Bump codeberg.org/gruf/go-mutexes from 1.3.0 to 1.3.1 (#2387) (diff) | |
download | gotosocial-74700cc8034980334e7df466f313287a41d2b8a6.tar.xz |
[performance] http response encoding / writing improvements (#2374)
Diffstat (limited to 'internal/web/tag.go')
-rw-r--r-- | internal/web/tag.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/web/tag.go b/internal/web/tag.go index d52de81d8..69591f114 100644 --- a/internal/web/tag.go +++ b/internal/web/tag.go @@ -45,7 +45,7 @@ func (m *Module) tagGETHandler(c *gin.Context) { } // We only serve text/html at this endpoint. - if _, err := apiutil.NegotiateAccept(c, []apiutil.MIME{apiutil.TextHTML}...); err != nil { + if _, err := apiutil.NegotiateAccept(c, apiutil.TextHTML); err != nil { apiutil.WebErrorHandler(c, gtserror.NewErrorNotAcceptable(err, err.Error()), instanceGet) return } |