From d2a46ade78128c319881acf23dc5baa41ad0b98e Mon Sep 17 00:00:00 2001 From: bo0tzz Date: Tue, 7 Jul 2026 14:09:57 +0200 Subject: [PATCH] chore: webhook headers ordering (#29695) --- packages/plugin-core/src/index.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/plugin-core/src/index.ts b/packages/plugin-core/src/index.ts index ff40414339..59279b4de6 100644 --- a/packages/plugin-core/src/index.ts +++ b/packages/plugin-core/src/index.ts @@ -151,14 +151,14 @@ const methods = wrapper({ }), webhook: ({ config, data, functions, type, trigger }) => { - const headers: Record = { - 'Content-Type': 'application/json', - }; + const headers: Record = {}; if (config.headerName && config.headerValue) { headers[config.headerName] = config.headerValue; } + headers['Content-Type'] = 'application/json'; + functions.httpRequest(config.url, { method: config.method ?? 'POST', body: JSON.stringify({