summaryrefslogtreecommitdiff
path: root/gemini/client.go
diff options
context:
space:
mode:
Diffstat (limited to 'gemini/client.go')
-rw-r--r--gemini/client.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gemini/client.go b/gemini/client.go
index e0f70e4..54fa069 100644
--- a/gemini/client.go
+++ b/gemini/client.go
@@ -41,7 +41,7 @@ func NewClient(tlsConf *tls.Config) Client {
// single request by default. This can be changed by altering the MaxRedirects field.
const DefaultMaxRedirects int = 2
-var ExceededMaxRedirects = errors.New("gemini.Client: exceeded MaxRedirects")
+var ErrExceededMaxRedirects = errors.New("gemini.Client: exceeded MaxRedirects")
// RoundTrip sends a single gemini request to the correct server and returns its response.
//
@@ -152,7 +152,7 @@ func (c Client) Fetch(ctx context.Context, url string) (*types.Response, error)
u = prev.ResolveReference(u)
}
- return nil, ExceededMaxRedirects
+ return nil, ErrExceededMaxRedirects
}
func (c Client) IsRedirect(response *types.Response) bool {