diff options
| author | Adnan Maolood <[email protected]> | 2020-10-27 21:18:05 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-10-27 21:18:05 -0400 |
| commit | b84811668cb39551bd69499656a3d50036388ede (patch) | |
| tree | 3d09aaddf3c43671be0bfc4c360aa293945d5645 /gemini.go | |
| parent | Add (*Client).Get function (diff) | |
| download | go-gemini-b84811668cb39551bd69499656a3d50036388ede.tar.xz go-gemini-b84811668cb39551bd69499656a3d50036388ede.zip | |
Reject schemes other than gemini:// in NewRequest
Diffstat (limited to 'gemini.go')
| -rw-r--r-- | gemini.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -18,6 +18,7 @@ var ( ErrCertificateExpired = errors.New("gemini: certificate expired") ErrCertificateNotTrusted = errors.New("gemini: certificate is not trusted") 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") ) |