Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Commit a91450b

Browse files
committed
also pass the correct content-type header
1 parent f87afd5 commit a91450b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/commands/create-apikey.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export default class CreateApikey extends BaseCommand {
4444
const response = await fetch(`${apiServer}/deployments/${id}/api-keys`, {
4545
method: 'POST',
4646
headers: {
47-
Authorization: `Bearer ${token}`,
47+
'Content-Type': 'application/json',
48+
Authorization: `Bearer ${token}`
4849
},
4950
body: JSON.stringify({
5051
name: opts.flags.name,

0 commit comments

Comments
 (0)