From cb50d970b47dbaf197309be9c72b46732209b346 Mon Sep 17 00:00:00 2001
From: Anmol Sethi <hi@nhooyr.io>
Date: Sun, 24 Nov 2019 22:15:43 -0500
Subject: [PATCH] Correct typo

Closes #172
---
 handshake.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/handshake.go b/handshake.go
index d1a9fba..2c01cab 100644
--- a/handshake.go
+++ b/handshake.go
@@ -329,7 +329,7 @@ func dial(ctx context.Context, u string, opts *DialOptions) (_ *Conn, _ *http.Re
 
 	rwc, ok := resp.Body.(io.ReadWriteCloser)
 	if !ok {
-		return nil, resp, fmt.Errorf("response body is not a io.ReadWriteCloser: %T", rwc)
+		return nil, resp, fmt.Errorf("response body is not a io.ReadWriteCloser: %T", resp.Body)
 	}
 
 	c := &Conn{
-- 
GitLab