1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 21:02:28 +01:00

Fix relative redirects

This commit is contained in:
adnano 2020-11-07 23:43:07 -05:00
parent b244439328
commit ee691dbba5

@ -152,6 +152,7 @@ func (c *Client) do(req *Request, via []*Request) (*Response, error) {
if err != nil {
return resp, err
}
target = req.URL.ResolveReference(target)
redirect := NewRequestFromURL(target)
if c.CheckRedirect != nil {