Skip to content

Commit

Permalink
fixes #467 : GET requests blocked by AWS Application Load Balancer (#472
Browse files Browse the repository at this point in the history
)

Signed-off-by: flbla <[email protected]>
  • Loading branch information
flbla authored Oct 30, 2024
1 parent 63844e9 commit 5568402
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 5568402

Please sign in to comment.