Skip to content

Commit

Permalink
Update libbeat/esleg/eslegclient/connection.go
Browse files Browse the repository at this point in the history
Co-authored-by: Tiago Queiroz <[email protected]>
  • Loading branch information
sakurai-youhei and belimawr authored Oct 28, 2023
1 parent 6e5bc24 commit a085274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libbeat/esleg/eslegclient/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,12 +345,12 @@ func (settings *httpClientProxySettings) ProxyDialer(_ *url.URL, forward proxy.D
}

// Write the CONNECT request
err = req.Write(c)
if err != nil {
if err := req.Write(c); err != nil {
c.Close()
return nil, err
}


res, err := http.ReadResponse(bufio.NewReader(c), req)
if err != nil {
c.Close()
Expand Down

0 comments on commit a085274

Please sign in to comment.