Fix headers when using node-fetch

This commit is contained in:
Ajay Ramachandran
2021-01-17 21:18:22 -05:00
parent acc9537bb7
commit 4561148ab2
3 changed files with 13 additions and 3 deletions

View File

@@ -42,6 +42,7 @@ function dispatchEvent(scope: string, data: any): void {
headers: {
"Authorization": authKey,
"Event-Type": scope, // Maybe change this in the future?
'Content-Type': 'application/json'
},
})
.catch(err => {