diff options
| author | Adnan Maolood <[email protected]> | 2020-10-27 14:17:14 -0400 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-10-27 14:17:14 -0400 |
| commit | 860a33f5a2e7e3610440b31e9acba4c8affb521b (patch) | |
| tree | aba3f6543dcf5c116c1a921ba9b2be8314ee0ea0 /examples/client.go | |
| parent | Add ServeFile function (diff) | |
| download | go-gemini-860a33f5a2e7e3610440b31e9acba4c8affb521b.tar.xz go-gemini-860a33f5a2e7e3610440b31e9acba4c8affb521b.zip | |
Fix examples
Diffstat (limited to 'examples/client.go')
| -rw-r--r-- | examples/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.go b/examples/client.go index af94d44..659e783 100644 --- a/examples/client.go +++ b/examples/client.go @@ -73,7 +73,7 @@ func sendRequest(req *gmi.Request) error { } // TODO: More fine-grained analysis of the status code. - switch resp.Status / 10 { + switch resp.Status.Class() { case gmi.StatusClassInput: fmt.Printf("%s: ", resp.Meta) scanner.Scan() |