Skip to content

Commit 5508c0c

Browse files
committed
Update packages/cubejs-cli/src/command/typegen.ts
1 parent d47115c commit 5508c0c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/cubejs-cli/src/command/typegen.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ const generateQueryTypes = async (apiUrl, { token }) => {
6666
try {
6767
const response = await fetch(
6868
`${apiUrl}/meta`,
69-
{ headers: { authorization: token } }
69+
{
70+
headers: {
71+
authorization: token,
72+
'Content-type': 'application/json',
73+
}
74+
}
7075
);
7176
meta = await response.json();
7277
} catch (e: any) {

0 commit comments

Comments
 (0)