From 82ad60e315a401040cbfb9f2d4919a3b2db79f68 Mon Sep 17 00:00:00 2001 From: huzaif-plivo Date: Wed, 15 Dec 2021 18:21:41 +0530 Subject: [PATCH] added user agent field --- packages/nodes-base/nodes/Plivo/GenericFunctions.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Plivo/GenericFunctions.ts b/packages/nodes-base/nodes/Plivo/GenericFunctions.ts index 98ca7fa52f29c..f33f7deaebe90 100644 --- a/packages/nodes-base/nodes/Plivo/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Plivo/GenericFunctions.ts @@ -9,6 +9,10 @@ import { NodeOperationError, } from 'n8n-workflow'; +import { + OptionsWithUri, +} from 'request'; + /** * Make an API request to Plivo. * @@ -32,7 +36,10 @@ export async function plivoApiRequest( throw new NodeOperationError(this.getNode(), 'No credentials returned!'); } - const options = { + const options: OptionsWithUri = { + headers: { + 'user-agent': 'plivo-n8n', + }, method, form: body, qs,