diff options
| author | Adnan Maolood <[email protected]> | 2020-11-04 23:46:05 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-11-04 23:46:05 -0500 |
| commit | cec1f118fbcf7aea5b524171a19bc324518f248c (patch) | |
| tree | 226802abedcd91bec68872c49eb684f7a6488877 /gemini.go | |
| parent | Use ECDSA keys by default (diff) | |
| download | go-gemini-cec1f118fbcf7aea5b524171a19bc324518f248c.tar.xz go-gemini-cec1f118fbcf7aea5b524171a19bc324518f248c.zip | |
Remove some unnecessary errors
Diffstat (limited to 'gemini.go')
| -rw-r--r-- | gemini.go | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -14,12 +14,8 @@ var ( ErrCertificateExpired = errors.New("gemini: certificate expired") ErrCertificateNotFound = errors.New("gemini: certificate not found") ErrCertificateNotTrusted = errors.New("gemini: certificate not trusted") - ErrCertificateRequired = errors.New("gemini: certificate required") - 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") + ErrBodyNotAllowed = errors.New("gemini: response body not allowed") ErrTooManyRedirects = errors.New("gemini: too many redirects") - ErrInputRequired = errors.New("gemini: input required") ) // defaultClient is the default client. It is used by Get and Do. |