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:
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user