client: Remove superfluous call to Flush
This commit is contained in:
parent
6928a1efef
commit
c70ef5c470
@ -164,10 +164,6 @@ func (c *Client) do(conn *tls.Conn, req *Request) (*Response, error) {
|
|||||||
return nil, fmt.Errorf("failed to write request: %w", err)
|
return nil, fmt.Errorf("failed to write request: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := w.Flush(); err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
// Read the response
|
// Read the response
|
||||||
resp, err := ReadResponse(conn)
|
resp, err := ReadResponse(conn)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user