aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulio Capote <jcapote@gmail.com>2023-01-05 23:38:43 +0000
committerJulio Capote <jcapote@gmail.com>2023-01-05 23:38:43 +0000
commit072d280feeab54138272c8ae58ee9472fd968972 (patch)
tree723eba85c03f95f867b4c15e7bc448cc48fe1564
parent9603aa8f3da0046a55b23c831a985ef2f357e784 (diff)
downloadcommunique-072d280feeab54138272c8ae58ee9472fd968972.tar.gz
use activity+json
-rw-r--r--http/router.go2
1 files changed, 1 insertions, 1 deletions
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)
}
}