Skip to content

Commit c9a7543

Browse files
committed
fix: use http.NoBody
1 parent d28a1e3 commit c9a7543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/server/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func (s Server) makeExternalRequest(ctx context.Context) error {
3535
ctx, span := s.trace.Start(ctx, "Server.makeExternalRequest")
3636
defer span.End()
3737

38-
req, err := http.NewRequestWithContext(ctx, "GET", "https://www.google.com/", nil)
38+
req, err := http.NewRequestWithContext(ctx, "GET", "https://www.google.com/", http.NoBody)
3939
if err != nil {
4040
return errors.Wrap(err, "create external request")
4141
}

0 commit comments

Comments
 (0)