Skip to content

Commit 91a6044

Browse files
authored
Merge pull request #217 from OpenWebhook/send-headers-to-localhost
feature: add a custom header
2 parents e828afc + 924faa0 commit 91a6044

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/forward-to-localhost.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ export const forwardWebhookToLocalhost = async (
1212
method: "POST",
1313
url: `${baseUrl}${webhook.path}`,
1414
data: JSON.parse(webhook.body),
15+
headers: {
16+
"X-WS-Original-Headers": webhook.headers,
17+
},
1518
};
1619

1720
axios

0 commit comments

Comments
 (0)