mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-02 22:38:08 -06: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
|
|
@ -36,7 +36,6 @@ func (t *transport) DereferenceMedia(ctx context.Context, iri *url.URL) (io.Read
|
|||
return nil, 0, err
|
||||
}
|
||||
req.Header.Add("Accept", "*/*") // we don't know what kind of media we're going to get here
|
||||
req.Header.Set("Host", iri.Host)
|
||||
|
||||
// Perform the HTTP request
|
||||
rsp, err := t.GET(req)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue