client: Remove superfluous call to Flush

This commit is contained in:
Adnan Maolood 2021-02-18 21:55:17 -05:00
parent 6928a1efef
commit c70ef5c470

View File

@ -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)
}
if err := w.Flush(); err != nil {
return nil, err
}
// Read the response
resp, err := ReadResponse(conn)
if err != nil {