Skip to content

Commit

Permalink
fixes #467 : GET requests blocked by AWS Application Load Balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
flbla committed Oct 23, 2024
1 parent 8e20c50 commit d30c886
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ func (c *Client) SendRequest(method string, path string, payload interface{}, st
client := &http.Client{}

b := new(bytes.Buffer)
err = json.NewEncoder(b).Encode(payload)
if err != nil {
return "", "", 0, err
if payload != nil {
err = json.NewEncoder(b).Encode(payload)
if err != nil {
return "", "", 0, err
}
}

if c.insecure == true {
Expand Down

0 comments on commit d30c886

Please sign in to comment.