diff options
| author | adnano <[email protected]> | 2020-09-27 20:11:45 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-27 20:11:45 -0400 |
| commit | a4a8d49ca73b8d8a9732f719c329f47fefeea107 (patch) | |
| tree | 58fe70fa50f57882a6a980c685e45e95342216ad /examples | |
| parent | Reject invalid status codes (diff) | |
| download | go-gemini-a4a8d49ca73b8d8a9732f719c329f47fefeea107.tar.xz go-gemini-a4a8d49ca73b8d8a9732f719c329f47fefeea107.zip | |
Add helper handler functions
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/client/client.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/client/client.go b/examples/client/client.go index 30a0a9b..4c924a6 100644 --- a/examples/client/client.go +++ b/examples/client/client.go @@ -77,9 +77,8 @@ func sendRequest(req *gemini.Request) error { case gemini.StatusClassClientCertificateRequired: fmt.Println("Generating client certificate for", req.Hostname()) return nil // TODO: Generate and store client certificate - default: - return fmt.Errorf("Protocol error: Server sent an invalid response") } + panic("unreachable") } type trust int |