mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-08 20:47:02 +03:00
Fix headers when using node-fetch
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user