From 0234ea87e2b67271009dfef86991952f1f28c753 Mon Sep 17 00:00:00 2001 From: "Chang, Hui-Tang" Date: Mon, 9 Dec 2024 21:21:50 +0800 Subject: [PATCH] fix(component,http): fix the request body marshalling (#928) Because - the request body was not properly marshalled. This commit - fixes the request body marshalling. --- pkg/component/generic/http/v0/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/component/generic/http/v0/main.go b/pkg/component/generic/http/v0/main.go index 130c2d952..0b8cc6320 100644 --- a/pkg/component/generic/http/v0/main.go +++ b/pkg/component/generic/http/v0/main.go @@ -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)