diff options
| author | Adnan Maolood <[email protected]> | 2021-02-18 21:55:17 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-02-18 21:55:17 -0500 |
| commit | c70ef5c4709bfce445302ba011e104ce89c9ae26 (patch) | |
| tree | 55e199226ee3d9a6c499e04f85542b985217257d | |
| parent | request.Write: return error from Flush (diff) | |
| download | go-gemini-c70ef5c4709bfce445302ba011e104ce89c9ae26.tar.xz go-gemini-c70ef5c4709bfce445302ba011e104ce89c9ae26.zip | |
client: Remove superfluous call to Flush
| -rw-r--r-- | client.go | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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 { |