Skip to content

Commit

Permalink
changed email encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
tahanson-cisco committed Jul 17, 2024
1 parent e19d6a5 commit a5aefdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
icon: r.weather[0].icon
}));
const getPersonResponse = (email: string) =>
fetch(webexApiUrl + `/people?email=${encodeURIComponent(email)}`, {
fetch(webexApiUrl + `/people?email=${encodeURI(email)}`, {
headers: { Authorization: 'Bearer ' + webexToken }
})
.then((r) => (r.status >= 400 ? Promise.reject(r) : r))
Expand Down

0 comments on commit a5aefdf

Please sign in to comment.