Skip to content

Commit

Permalink
refactor: Update http.NewRequestWithContext to use http.NoBody
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 13, 2024
1 parent 99d543a commit 372dbe3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/relaymonitor/relay/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func (c *Client) GetProposerPayloadDelivered(ctx context.Context, params url.Val

reqURL.RawQuery = params.Encode()

req, err := http.NewRequestWithContext(ctx, http.MethodGet, reqURL.String(), nil)
req, err := http.NewRequestWithContext(ctx, http.MethodGet, reqURL.String(), http.NoBody)
if err != nil {
return nil, fmt.Errorf("failed to create request: %w", err)
}
Expand Down

0 comments on commit 372dbe3

Please sign in to comment.