diff options
| author | 2024-04-02 13:28:36 +0100 | |
|---|---|---|
| committer | 2024-04-02 14:28:36 +0200 | |
| commit | e664d0918b2ea004a2498cb67a6e0b4b3b3666f3 (patch) | |
| tree | 39b85b1a9ad67ac3ac6bae348e43e01de46993ed /internal/transport/finger.go | |
| parent | [bugfix] httpclient not signing subsequent redirect requests (#2798) (diff) | |
| download | gotosocial-e664d0918b2ea004a2498cb67a6e0b4b3b3666f3.tar.xz | |
[bugfix] Set the `Host` header within the signing transport (#2799)
Diffstat (limited to 'internal/transport/finger.go')
| -rw-r--r-- | internal/transport/finger.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/internal/transport/finger.go b/internal/transport/finger.go index 9bcb0fa7e..12563874c 100644 --- a/internal/transport/finger.go +++ b/internal/transport/finger.go @@ -68,7 +68,6 @@ func prepWebfingerReq(ctx context.Context, loc, domain, username string) (*http. // including Gin itself. So concat the accept header with a comma // instead which seems to work reliably req.Header.Add("Accept", string(apiutil.AppJRDJSON)+","+string(apiutil.AppJSON)) - req.Header.Set("Host", req.URL.Host) return req, nil } @@ -187,7 +186,6 @@ func (t *transport) webfingerFromHostMeta(ctx context.Context, targetDomain stri // We're doing XML req.Header.Add("Accept", string(apiutil.AppXML)) req.Header.Add("Accept", "application/xrd+xml") - req.Header.Set("Host", req.URL.Host) // Perform the HTTP request rsp, err := t.GET(req) |
