From 0140ab8f8a7f4152695e40a212a9660b01b31c88 Mon Sep 17 00:00:00 2001 From: Jordin Date: Tue, 21 May 2024 11:53:27 -0600 Subject: [PATCH] add header to distinguish CLI requests (#111) Co-authored-by: Jordin Gardner --- lib/api.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/api.ts b/lib/api.ts index c50743e..bbe258d 100644 --- a/lib/api.ts +++ b/lib/api.ts @@ -10,6 +10,7 @@ export function createApiClient(token?: string) { Authorization: `token ${ token || config.getToken(consts.CONFIG_FILE, consts.API_HOST) }`, + "X-Ditto-CLI": true, }, }); }