Skip to content

Commit

Permalink
Ensuring we're communicating via json
Browse files Browse the repository at this point in the history
  • Loading branch information
hlafaille committed Oct 3, 2024
1 parent b25a3ca commit 6220a8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/projects/espresso/registry/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
const response = await fetch(`${apiUrl}?q=` + encodeURI(term), {
method: 'GET',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'Accepts': 'application/json'
}
});
Expand Down

0 comments on commit 6220a8c

Please sign in to comment.