From 5bf0dd0ef1f66e4d0ad287bb0a3772c702d8c517 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=8A=98=E6=88=9F=E6=B2=89=E6=B2=99=E3=80=81=E4=B8=BF?= <36452456+bincooo@users.noreply.github.com> Date: Fri, 16 Aug 2024 10:03:43 +0800 Subject: [PATCH] feat(http): text/plain is allowed (#2376) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(http): plan/txt is allowed * Update http468.ts * Update http468.ts * body 添加string类型 --- packages/global/core/workflow/runtime/type.d.ts | 2 +- packages/service/core/workflow/dispatch/tools/http468.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/global/core/workflow/runtime/type.d.ts b/packages/global/core/workflow/runtime/type.d.ts index a248c83d2..1402478f8 100644 --- a/packages/global/core/workflow/runtime/type.d.ts +++ b/packages/global/core/workflow/runtime/type.d.ts @@ -130,7 +130,7 @@ export type DispatchNodeResponseType = { // http params?: Record; - body?: Record; + body?: Record | string; headers?: Record; httpResult?: Record; diff --git a/packages/service/core/workflow/dispatch/tools/http468.ts b/packages/service/core/workflow/dispatch/tools/http468.ts index 440c15d16..b0fafbd74 100644 --- a/packages/service/core/workflow/dispatch/tools/http468.ts +++ b/packages/service/core/workflow/dispatch/tools/http468.ts @@ -111,6 +111,9 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise; - body: Record; + body: Record | string; params: Record; }) { const { data: response } = await axios({