From dcfa170f219d7f049a73ad3cfb8dacfd2a7eef56 Mon Sep 17 00:00:00 2001 From: Kevin J Dolan Date: Mon, 31 Oct 2022 13:51:13 -0400 Subject: [PATCH] Fix #15 - Issue with webhooks POSTing with attached file --- notifiers/webhook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifiers/webhook.js b/notifiers/webhook.js index 0c71062..6387f3f 100644 --- a/notifiers/webhook.js +++ b/notifiers/webhook.js @@ -40,7 +40,7 @@ async function postMultiPartFormDataWithFile({address, headers={}, timestamp, to form.append('matchAverages', matchAverages.toString()); form.append('detectorName', detectorName); form.append('custom', JSON.stringify(custom)); - form.append(isTest, isTest); + form.append('isTest', isTest.toString()); const buffer = fs.readFileSync(recordingRelPath); form.append('file', buffer, {