aboutsummaryrefslogtreecommitdiff
path: root/gemini.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2020-10-27 21:18:05 -0400
committerAdnan Maolood <[email protected]>2020-10-27 21:18:05 -0400
commitb84811668cb39551bd69499656a3d50036388ede (patch)
tree3d09aaddf3c43671be0bfc4c360aa293945d5645 /gemini.go
parentAdd (*Client).Get function (diff)
downloadgo-gemini-b84811668cb39551bd69499656a3d50036388ede.tar.xz
go-gemini-b84811668cb39551bd69499656a3d50036388ede.zip
Reject schemes other than gemini:// in NewRequest
Diffstat (limited to 'gemini.go')
-rw-r--r--gemini.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/gemini.go b/gemini.go
index 045a05d..173b137 100644
--- a/gemini.go
+++ b/gemini.go
@@ -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")
)