aboutsummaryrefslogtreecommitdiff
path: root/request_test.go
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-28 22:16:38 -0500
committerAdnan Maolood <[email protected]>2021-02-28 22:16:38 -0500
commit768ec6c17b662b3a62173ce0a3527f221404c249 (patch)
tree8dbad6100519d6f25af206cdedf8f1ac9990618f /request_test.go
parentAdd message argument to TimeoutHandler (diff)
downloadgo-gemini-768ec6c17b662b3a62173ce0a3527f221404c249.tar.xz
go-gemini-768ec6c17b662b3a62173ce0a3527f221404c249.zip
Make Request implement io.WriterTo
Diffstat (limited to 'request_test.go')
-rw-r--r--request_test.go2
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)
}