summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorAravinth Manivannan <realaravinth@batsense.net>2024-04-02 10:41:47 +0200
committerAravinth Manivannan <realaravinth@batsense.net>2024-04-02 10:41:47 +0200
commit2c2f146895b1c8a271546eb5a653b5a99b75418e (patch)
tree8ebd0d086d052f6c357dff7bc9f648eb0e9d8883 /routers
parentMerge pull request '[BUG] Use correct translation on closed milestones' (#295... (diff)
downloadforgejo-2c2f146895b1c8a271546eb5a653b5a99b75418e.tar.xz
forgejo-2c2f146895b1c8a271546eb5a653b5a99b75418e.zip
fix: respond with JSON Resource Descriptor Content-Type per RFC7033
Diffstat (limited to 'routers')
-rw-r--r--routers/web/webfinger.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/webfinger.go b/routers/web/webfinger.go
index a87c426b3b..e4b2aacce8 100644
--- a/routers/web/webfinger.go
+++ b/routers/web/webfinger.go
@@ -118,4 +118,5 @@ func WebfingerQuery(ctx *context.Context) {
Aliases: aliases,
Links: links,
})
+ ctx.Resp.Header().Set("Content-Type", "application/jrd+json")
}