From d61d5c8a6ad045fe7779fe8d0efe2fd06f691fba Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Tue, 2 Apr 2024 12:12:26 +0100 Subject: [bugfix] httpclient not signing subsequent redirect requests (#2798) * move http request signing to transport * actually hook up the http roundtripper ... * add code comments for the new gtscontext functions --- internal/transport/controller.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'internal/transport/controller.go') diff --git a/internal/transport/controller.go b/internal/transport/controller.go index 81022596a..891a24495 100644 --- a/internal/transport/controller.go +++ b/internal/transport/controller.go @@ -37,7 +37,6 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/config" "github.com/superseriousbusiness/gotosocial/internal/db" "github.com/superseriousbusiness/gotosocial/internal/federation/federatingdb" - "github.com/superseriousbusiness/gotosocial/internal/httpclient" "github.com/superseriousbusiness/gotosocial/internal/state" ) @@ -54,14 +53,14 @@ type controller struct { state *state.State fedDB federatingdb.DB clock pub.Clock - client httpclient.SigningClient + client pub.HttpClient trspCache cache.TTLCache[string, *transport] userAgent string senders int // no. concurrent batch delivery routines. } // NewController returns an implementation of the Controller interface for creating new transports -func NewController(state *state.State, federatingDB federatingdb.DB, clock pub.Clock, client httpclient.SigningClient) Controller { +func NewController(state *state.State, federatingDB federatingdb.DB, clock pub.Clock, client pub.HttpClient) Controller { var ( host = config.GetHost() proto = config.GetProtocol() -- cgit v1.2.3