Skip to content

Commit 3c66e49

Browse files
committed
mod: add set connection close
1 parent ba35249 commit 3c66e49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

internal/client/httpclient.go

+1
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,6 @@ func NewClient(timeout int64, proxy string) *Client {
4343
}
4444

4545
func (cli *Client) Do(req *fasthttp.Request, resp *fasthttp.Response) error {
46+
req.Header.SetConnectionClose() // to set connection: close
4647
return cli.client.DoTimeout(req, resp, time.Second*time.Duration(cli.timeout))
4748
}

0 commit comments

Comments
 (0)