mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
chore: webhook headers ordering (#29695)
This commit is contained in:
parent
68b04e8e8f
commit
d2a46ade78
1 changed files with 3 additions and 3 deletions
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue