mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:22:24 -05:00
[bugfix] Set the Host header within the signing transport (#2799)
This commit is contained in:
parent
d61d5c8a6a
commit
e664d0918b
7 changed files with 3 additions and 9 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue