Skip to content

Commit

Permalink
Body NewRequest
Browse files Browse the repository at this point in the history
Add body on NewRequest, not nil
  • Loading branch information
mgutijae authored and aldas committed Jan 4, 2023
1 parent 5f12f87 commit bba49a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jaegertracing/jaegertracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ func CreateChildSpan(ctx echo.Context, name string) opentracing.Span {

// NewTracedRequest generates a new traced HTTP request with opentracing headers injected into it
func NewTracedRequest(method string, url string, body io.Reader, span opentracing.Span) (*http.Request, error) {
req, err := http.NewRequest(method, url, nil)
req, err := http.NewRequest(method, url, body)
if err != nil {
panic(err.Error())
}
Expand Down

0 comments on commit bba49a2

Please sign in to comment.