aboutsummaryrefslogtreecommitdiff
path: root/doc.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-01-10 01:21:56 -0500
committerAdnan Maolood <[email protected]>2021-01-10 01:21:56 -0500
commit1f2888c54aba7d64945d4addd6208fbafce96b0f (patch)
tree7fab3bb7eb21ea18bf1730b072a4a5a26f4cb637 /doc.go
parentMove documentation back to doc.go (diff)
downloadgo-gemini-1f2888c54aba7d64945d4addd6208fbafce96b0f.tar.xz
go-gemini-1f2888c54aba7d64945d4addd6208fbafce96b0f.zip
Update documentation
Diffstat (limited to 'doc.go')
-rw-r--r--doc.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc.go b/doc.go
index e858ee7..f90d6d3 100644
--- a/doc.go
+++ b/doc.go
@@ -8,7 +8,7 @@ Client is a Gemini client.
if err != nil {
// handle error
}
- if resp.Status.Class() == gemini.StatusClassSucess {
+ if resp.Body != nil {
defer resp.Body.Close()
// ...
}
@@ -17,8 +17,8 @@ Client is a Gemini client.
Server is a Gemini server.
server := &gemini.Server{
- ReadTimeout: 10 * time.Second,
- WriteTimeout: 10 * time.Second,
+ ReadTimeout: 10 * time.Second,
+ WriteTimeout: 10 * time.Second,
}
Servers should be configured with certificates: