Skip to content

Commit

Permalink
add header to distinguish CLI requests (#111)
Browse files Browse the repository at this point in the history
Co-authored-by: Jordin Gardner <[email protected]>
  • Loading branch information
azjgard and Jordin Gardner authored May 21, 2024
1 parent c75ecf5 commit 0140ab8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export function createApiClient(token?: string) {
Authorization: `token ${
token || config.getToken(consts.CONFIG_FILE, consts.API_HOST)
}`,
"X-Ditto-CLI": true,
},
});
}

0 comments on commit 0140ab8

Please sign in to comment.