From a4a8d49ca73b8d8a9732f719c329f47fefeea107 Mon Sep 17 00:00:00 2001 From: adnano Date: Sun, 27 Sep 2020 20:11:45 -0400 Subject: Add helper handler functions --- examples/client/client.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'examples/client') 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 -- cgit v1.2.3