diff options
| author | Adnan Maolood <[email protected]> | 2021-02-28 22:16:38 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-28 22:16:38 -0500 |
| commit | 768ec6c17b662b3a62173ce0a3527f221404c249 (patch) | |
| tree | 8dbad6100519d6f25af206cdedf8f1ac9990618f /request_test.go | |
| parent | Add message argument to TimeoutHandler (diff) | |
| download | go-gemini-768ec6c17b662b3a62173ce0a3527f221404c249.tar.xz go-gemini-768ec6c17b662b3a62173ce0a3527f221404c249.zip | |
Make Request implement io.WriterTo
Diffstat (limited to 'request_test.go')
| -rw-r--r-- | request_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/request_test.go b/request_test.go index 3497ed6..90ca57a 100644 --- a/request_test.go +++ b/request_test.go @@ -119,7 +119,7 @@ func TestWriteRequest(t *testing.T) { t.Logf("%s", test.Req.URL) var b strings.Builder bw := bufio.NewWriter(&b) - err := test.Req.Write(bw) + _, err := test.Req.WriteTo(bw) if err != test.Err { t.Errorf("expected err = %v, got %v", test.Err, err) } |