aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdnan Maolood <[email protected]>2021-02-18 21:55:17 -0500
committerAdnan Maolood <[email protected]>2021-02-18 21:55:17 -0500
commitc70ef5c4709bfce445302ba011e104ce89c9ae26 (patch)
tree55e199226ee3d9a6c499e04f85542b985217257d
parentrequest.Write: return error from Flush (diff)
downloadgo-gemini-c70ef5c4709bfce445302ba011e104ce89c9ae26.tar.xz
go-gemini-c70ef5c4709bfce445302ba011e104ce89c9ae26.zip
client: Remove superfluous call to Flush
-rw-r--r--client.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/client.go b/client.go
index b12d635..a2e53f0 100644
--- a/client.go
+++ b/client.go
@@ -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 {