From 072d280feeab54138272c8ae58ee9472fd968972 Mon Sep 17 00:00:00 2001 From: Julio Capote Date: Thu, 5 Jan 2023 18:38:43 -0500 Subject: use activity+json --- http/router.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/router.go') diff --git a/http/router.go b/http/router.go index 910c67c..4c251df 100644 --- a/http/router.go +++ b/http/router.go @@ -26,7 +26,7 @@ func render(c *gin.Context, resource map[string]interface{}, err error) { jsonErr := c.Error(err) c.JSON(http.StatusInternalServerError, jsonErr.JSON()) } else { - c.Writer.Header().Set("Content-Type", "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"") + c.Writer.Header().Set("Content-Type", "application/activity+json") c.JSON(http.StatusOK, resource) } } -- cgit v1.2.3