diff options
author | 2024-07-31 16:03:34 +0200 | |
---|---|---|
committer | 2024-07-31 15:03:34 +0100 | |
commit | 38f041cea1ba0cd3492f351353a29aa5b73e2731 (patch) | |
tree | bdd055d5cf7d9c06523c694cb4abe86d220960d0 /internal/api/util/negotiate.go | |
parent | [feature] Object store custom URL (S3) (#3046) (diff) | |
download | gotosocial-38f041cea1ba0cd3492f351353a29aa5b73e2731.tar.xz |
[feature] Allow users to export data via the settings panel (#3140)
* [feature] Allow users to export data via the settings panel
* rename/move some stuff
Diffstat (limited to 'internal/api/util/negotiate.go')
-rw-r--r-- | internal/api/util/negotiate.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/api/util/negotiate.go b/internal/api/util/negotiate.go index 5b4f54bc6..4910b7aef 100644 --- a/internal/api/util/negotiate.go +++ b/internal/api/util/negotiate.go @@ -88,6 +88,12 @@ var HostMetaHeaders = []string{ AppXML, } +// CSVHeaders just contains the text/csv +// MIME type, used for import/export. +var CSVHeaders = []string{ + TextCSV, +} + // 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 |