Skip to content

Commit a9bdfaa

Browse files
tonystarkjr3Anupam Pokharel
andauthored
adding Connection close header in http requests of our golang client (#372)
Co-authored-by: Anupam Pokharel <[email protected]>
1 parent e004c78 commit a9bdfaa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

common/rest/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func (c *Client) DoWithContext(ctx context.Context, r *Request, respV interface{
6363
client = http.DefaultClient
6464
}
6565

66+
req.Close = true
6667
resp, err := client.Do(req)
6768
if err != nil {
6869
return resp, err

0 commit comments

Comments
 (0)