Skip to content

Commit

Permalink
fix(component,http): fix the request body marshalling (#928)
Browse files Browse the repository at this point in the history
Because

- the request body was not properly marshalled.

This commit

- fixes the request body marshalling.
  • Loading branch information
donch1989 authored and jvallesm committed Dec 10, 2024
1 parent 26c6a88 commit 0234ea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/component/generic/http/v0/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ func (e *execution) executeHTTP(ctx context.Context, job *base.Job) error {
// An API error is a valid output in this component.
req := e.client.R()
if in.Body != nil {
req.SetBody(in.Body)
req.SetBody(in.Body.String())
}

resp, err := req.Execute(taskMethod[e.Task], in.EndpointURL)
Expand Down

0 comments on commit 0234ea8

Please sign in to comment.