Skip to content

Commit

Permalink
Fix: set Content-type to JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
arminfelder committed Dec 5, 2024
1 parent 5a5d448 commit 6108f11
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/src/utils/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ const post = async (url: string, body: any): Promise<Response> => {
const request = await fetch(url, {
body: JSON.stringify(body),
method: 'POST',
headers: {
ContentType: 'application/json'
}
});
return { data: await request.json(), status: request.status };
};
Expand Down

0 comments on commit 6108f11

Please sign in to comment.