Skip to content

Commit cce6d67

Browse files
committed
fix imports
1 parent c3db8e7 commit cce6d67

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package gws
22

33
import (
44
"bufio"
5-
"bytes"
65
"context"
76
"crypto/tls"
87
"encoding/base64"
@@ -98,7 +97,7 @@ func (c *connector) request() (*http.Response, *bufio.Reader, error) {
9897
return nil, nil, err
9998
}
10099
for k, v := range c.option.RequestHeader {
101-
if k == "Host" {
100+
if k == "Host" && len(v) > 0 {
102101
r.Host = v[0]
103102
}
104103
r.Header[k] = v

0 commit comments

Comments
 (0)