Skip to content

Commit a91ad24

Browse files
Nixxx19AndreyHirsa
andauthored
fix: use Content-Type header in auth.ts (#1995)
* fix: use Content-Type header in auth.ts (thanks @Nixxx19) * chore: add changeset --------- Co-authored-by: AndreyHirsa <58431746+AndreyHirsa@users.noreply.github.com>
1 parent f9726b7 commit a91ad24

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/fast-badgers-thank.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"lingo.dev": patch
3+
---
4+
5+
Fix Content-Type header in auth.ts whoami request

packages/cli/src/cli/utils/auth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function createAuthenticator(params: AuthenticatorParams) {
2222
method: "POST",
2323
headers: {
2424
Authorization: `Bearer ${params.apiKey}`,
25-
ContentType: "application/json",
25+
"Content-Type": "application/json",
2626
},
2727
});
2828

0 commit comments

Comments
 (0)