gotosocial/internal/api
Daenney e91cabb704
[bugfix] Fix NegotiateFormat with multiple accept headers (#1797)
* [bugfix] Fix NegotiateAccept with multi accept

There's a bug in Gin's NegotiateFormat that doesn't handle the presence
of multilpe accept headers. This lifts the code from the PR @tsmethurst
sent a year ago to Gin into our codebase to fix the issue.

* [bugfix] Concat accept header in webfinger

Some implementations bug out when there's multiple accept headers,
including Gin (see 7050112af1ccc935ec542cb41fa8b07f7357539d). But things
seem to work reliably with a single accept header with multiple parts.

Fixes: #1793
2023-05-16 15:08:45 +02:00
..
activitypub [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
auth [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
client [frontend] Basic user moderation actions (#1728) 2023-05-13 12:17:22 +02:00
fileserver [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
model [bugfix] Ensure account fields can be set by JSON (#1762) 2023-05-12 11:17:31 +02:00
nodeinfo [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
util [bugfix] Fix NegotiateFormat with multiple accept headers (#1797) 2023-05-16 15:08:45 +02:00
wellknown [bugfix] Serve correct 'application/jrd+json' content type for webfinger requests (#1738) 2023-05-04 12:28:50 +02:00
activitypub.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
auth.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
client.go [feature] Implement the preferences client API (#1740) 2023-05-06 17:42:58 +02:00
fileserver.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
nodeinfo.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
wellknown.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00