From f11aa06d273c519b8b3daa810543546afab14e7b Mon Sep 17 00:00:00 2001 From: Eric Koleda <88106038+ekoleda-codaio@users.noreply.github.com> Date: Tue, 9 Jan 2024 11:02:04 -0500 Subject: [PATCH] feat(Coda Node): Add User-Agent for requests to Coda (no-changelog) (#7771) Co-authored-by: Jonathan Bennetts --- packages/nodes-base/nodes/Coda/GenericFunctions.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/nodes-base/nodes/Coda/GenericFunctions.ts b/packages/nodes-base/nodes/Coda/GenericFunctions.ts index a993c6c2c9124..e2cdf6b8a8678 100644 --- a/packages/nodes-base/nodes/Coda/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Coda/GenericFunctions.ts @@ -20,7 +20,10 @@ export async function codaApiRequest( const credentials = await this.getCredentials('codaApi'); let options: OptionsWithUri = { - headers: { Authorization: `Bearer ${credentials.accessToken}` }, + headers: { + Authorization: `Bearer ${credentials.accessToken}`, + 'User-Agent': 'n8n', + }, method, qs, body,