gotosocial/internal/transport
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 7050112af1). But things
seem to work reliably with a single accept header with multiple parts.

Fixes: #1793
2023-05-16 15:08:45 +02:00
..
controller.go [feature] Enable federation in/out of profile PropertyValue fields (#1722) 2023-05-09 11:16:10 +01:00
deliver.go [performance] improved request batching (removes need for queueing) (#1687) 2023-04-28 17:45:21 +02:00
dereference.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
derefinstance.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
derefmedia.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
finger.go [bugfix] Fix NegotiateFormat with multiple accept headers (#1797) 2023-05-16 15:08:45 +02:00
finger_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
signing.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
transport.go [performance] improved request batching (removes need for queueing) (#1687) 2023-04-28 17:45:21 +02:00
transport_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00