client: Follow redirects

This commit is contained in:
Adnan Maolood
2020-10-27 22:12:10 -04:00
parent b84811668c
commit fc72224ce9
3 changed files with 56 additions and 30 deletions

View File

@@ -20,6 +20,7 @@ var (
ErrNotAFile = errors.New("gemini: not a file")
ErrNotAGeminiURL = errors.New("gemini: not a Gemini URL")
ErrBodyNotAllowed = errors.New("gemini: response status code does not allow for body")
ErrTooManyRedirects = errors.New("gemini: too many redirects")
)
// DefaultClient is the default client. It is used by Get and Do.