Skip to content

Commit cb50d97

Browse files
committed
Correct typo
Closes #172
1 parent 58ab202 commit cb50d97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

handshake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func dial(ctx context.Context, u string, opts *DialOptions) (_ *Conn, _ *http.Re
329329

330330
rwc, ok := resp.Body.(io.ReadWriteCloser)
331331
if !ok {
332-
return nil, resp, fmt.Errorf("response body is not a io.ReadWriteCloser: %T", rwc)
332+
return nil, resp, fmt.Errorf("response body is not a io.ReadWriteCloser: %T", resp.Body)
333333
}
334334

335335
c := &Conn{

0 commit comments

Comments
 (0)