From 4f2cd4049856115dab18464b93601c7aa1ea18b1 Mon Sep 17 00:00:00 2001 From: JQSevenMiao <141806521+JQSevenMiao@users.noreply.github.com> Date: Thu, 29 Jan 2026 15:37:37 +0800 Subject: [PATCH] fix: convert HTTP method to lowercase when parsing cURL commands (#31704) Co-authored-by: jiasiqi --- .../components/workflow/nodes/http/components/curl-panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/components/workflow/nodes/http/components/curl-panel.tsx b/web/app/components/workflow/nodes/http/components/curl-panel.tsx index aa67a2a0ae..6c809c310f 100644 --- a/web/app/components/workflow/nodes/http/components/curl-panel.tsx +++ b/web/app/components/workflow/nodes/http/components/curl-panel.tsx @@ -41,7 +41,7 @@ const parseCurl = (curlCommand: string): { node: HttpNodeType | null, error: str case '--request': if (i + 1 >= args.length) return { node: null, error: 'Missing HTTP method after -X or --request.' } - node.method = (args[++i].replace(/^['"]|['"]$/g, '') as Method) || Method.get + node.method = (args[++i].replace(/^['"]|['"]$/g, '').toLowerCase() as Method) || Method.get hasData = true break case '-H':