diff options
author | 2023-05-04 12:28:50 +0200 | |
---|---|---|
committer | 2023-05-04 12:28:50 +0200 | |
commit | 5027d0ced25f06c12208cd618cfbb83518610d79 (patch) | |
tree | 5e215da7d4e6eaa5f8be7e1eead39b63b3037847 /internal/api/util/mime.go | |
parent | [bugfix] Rework notifs to use min_id for paging up (#1734) (diff) | |
download | gotosocial-5027d0ced25f06c12208cd618cfbb83518610d79.tar.xz |
[bugfix] Serve correct 'application/jrd+json' content type for webfinger requests (#1738)
* [bugfix] Return `application/jrd+json` from webfinger queries
* update finger req content-type
Diffstat (limited to 'internal/api/util/mime.go')
-rw-r--r-- | internal/api/util/mime.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/util/mime.go b/internal/api/util/mime.go index 89aa23741..edd0dcecf 100644 --- a/internal/api/util/mime.go +++ b/internal/api/util/mime.go @@ -20,7 +20,6 @@ package util // MIME represents a mime-type. type MIME string -// MIME type const ( AppJSON MIME = `application/json` AppXML MIME = `application/xml` @@ -28,6 +27,7 @@ const ( AppRSSXML MIME = `application/rss+xml` AppActivityJSON MIME = `application/activity+json` AppActivityLDJSON MIME = `application/ld+json; profile="https://www.w3.org/ns/activitystreams"` + AppJRDJSON MIME = `application/jrd+json` // https://www.rfc-editor.org/rfc/rfc7033#section-10.2 AppForm MIME = `application/x-www-form-urlencoded` MultipartForm MIME = `multipart/form-data` TextXML MIME = `text/xml` |