From e9e8a03e0825d0affd48babaa512bc780795e8fb Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Wed, 15 Jun 2022 20:29:01 -0500 Subject: [PATCH] Use activitypub.ActivityStreamsContentType for Person response Content Type --- routers/api/v1/activitypub/person.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/api/v1/activitypub/person.go b/routers/api/v1/activitypub/person.go index 7b1212fa7..7e09a5050 100644 --- a/routers/api/v1/activitypub/person.go +++ b/routers/api/v1/activitypub/person.go @@ -87,7 +87,7 @@ func Person(ctx *context.APIContext) { jsonmap["@context"] = []string{"https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1"} - ctx.Resp.Header().Add("Content-Type", "application/activity+json") + ctx.Resp.Header().Add("Content-Type", activitypub.ActivityStreamsContentType) ctx.Resp.WriteHeader(http.StatusOK) binary, err = json.Marshal(jsonmap) if err != nil {