summaryrefslogtreecommitdiff
path: root/internal/api/util/negotiate.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/api/util/negotiate.go')
-rw-r--r--internal/api/util/negotiate.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/api/util/negotiate.go b/internal/api/util/negotiate.go
index 3a5f21775..06a202815 100644
--- a/internal/api/util/negotiate.go
+++ b/internal/api/util/negotiate.go
@@ -58,6 +58,11 @@ var HTMLOrActivityPubHeaders = []MIME{
AppActivityLDJSON,
}
+var HostMetaHeaders = []MIME{
+ AppXMLXRD,
+ AppXML,
+}
+
// NegotiateAccept takes the *gin.Context from an incoming request, and a
// slice of Offers, and performs content negotiation for the given request
// with the given content-type offers. It will return a string representation