diff options
| author | Adnan Maolood <[email protected]> | 2021-01-10 01:21:56 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-01-10 01:21:56 -0500 |
| commit | 1f2888c54aba7d64945d4addd6208fbafce96b0f (patch) | |
| tree | 7fab3bb7eb21ea18bf1730b072a4a5a26f4cb637 /doc.go | |
| parent | Move documentation back to doc.go (diff) | |
| download | go-gemini-1f2888c54aba7d64945d4addd6208fbafce96b0f.tar.xz go-gemini-1f2888c54aba7d64945d4addd6208fbafce96b0f.zip | |
Update documentation
Diffstat (limited to 'doc.go')
| -rw-r--r-- | doc.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |