We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3298be1 commit bfdcd64Copy full SHA for bfdcd64
src/managers/api.ts
@@ -39,6 +39,7 @@ export class APIManager {
39
40
init.method = init.method || "GET";
41
init.headers = {
42
+ Accept: "application/json",
43
...(init.headers || {}),
44
Authorization: this.apiKey,
45
};
@@ -53,6 +54,10 @@ export class APIManager {
53
54
55
if ("body" in init && init.body && !(init.body instanceof Buffer)) {
56
init.body = JSON.stringify(init.body);
57
+ init.headers = {
58
+ ...init.headers,
59
+ "Content-Type": "application/json",
60
+ };
61
}
62
63
return { url, init };
0 commit comments