Skip to content

Commit

Permalink
fix: request json api on all json posts
Browse files Browse the repository at this point in the history
  • Loading branch information
thislooksfun committed Mar 13, 2021
1 parent 88d2aba commit 5a8ff48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper/api/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export async function post<T>(
): Promise<T> {
return await _post(path, {
...opts(endpoint, userAgent, query, auth),
json,
json: { api_type: "json", ...json },
});
}

Expand Down

0 comments on commit 5a8ff48

Please sign in to comment.