chore: webhook headers ordering (#29695)

This commit is contained in:
bo0tzz 2026-07-07 14:09:57 +02:00 committed by GitHub
parent 68b04e8e8f
commit d2a46ade78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -151,14 +151,14 @@ const methods = wrapper<Manifest>({
}),
webhook: ({ config, data, functions, type, trigger }) => {
const headers: Record<string, string> = {
'Content-Type': 'application/json',
};
const headers: Record<string, string> = {};
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({