Skip to content

Commit

Permalink
fix: missing header content type
Browse files Browse the repository at this point in the history
  • Loading branch information
MaGOs92 committed Sep 20, 2024
1 parent ac8d5f2 commit 93db0cc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/lib/api-mes-adresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ export async function getStatsBals(fields: string[], codeCommunes: string[]): Pr
for (const field of fields) {
url.searchParams.append('fields', field)
}
const body = JSON.stringify({ codeCommunes })
return customFetch(url, {
method: 'POST',
body: JSON.stringify({
codeCommunes,
}),
body,
headers: {
'Content-Type': 'application/json',
},
})
}

Expand Down

0 comments on commit 93db0cc

Please sign in to comment.