mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] Set the Host
header within the signing transport (#2799)
This commit is contained in:
@@ -37,6 +37,9 @@ type signingtransport struct {
|
||||
}
|
||||
|
||||
func (t *signingtransport) RoundTrip(r *http.Request) (*http.Response, error) {
|
||||
// Ensure updated host always set.
|
||||
r.Header.Set("Host", r.URL.Host)
|
||||
|
||||
if sign := gtscontext.HTTPClientSignFunc(r.Context()); sign != nil {
|
||||
// Reset signing header fields
|
||||
now := time.Now().UTC()
|
||||
|
Reference in New Issue
Block a user