Skip to content

Commit

Permalink
Fix: set Content-type to JSON
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Felder <[email protected]>
  • Loading branch information
arminfelder committed Dec 12, 2024
1 parent 487fbfc commit 2295e23
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 2295e23

Please sign in to comment.