2
0

fix: 🐛 Smash tiny bugs

This commit is contained in:
Baptiste Arnaud
2022-02-22 16:30:41 +01:00
parent 6d455a3861
commit 1dc2264bdf
4 changed files with 33 additions and 21 deletions

View File

@ -66,7 +66,7 @@ const executeWebhook =
const basicAuthHeaderIdx = webhook.headers.findIndex(
(h) =>
h.key?.toLowerCase() === 'authorization' &&
h.value?.toLowerCase().includes('basic')
h.value?.toLowerCase()?.includes('basic')
)
if (basicAuthHeaderIdx !== -1) {
const [username, password] =