Skip to content

Commit

Permalink
Add accept header
Browse files Browse the repository at this point in the history
  • Loading branch information
cultpodcasts committed May 9, 2024
1 parent d5cd8a0 commit d1d938b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,10 @@ app.post("/submit", auth0Middleware, async (c) => {
console.log(`Using auth header '${authorisation.slice(0, 20)}..'`);
const resp = await fetch(c.env.secureSubmitEndpoint, {
headers: {
'Accept': "*/*",
'Authorisation': authorisation,
"Content-type": "application/json;charset=UTF-8",
"Content-type": "application/json",
"Cache-Control":"no-cache",
},
body: JSON.stringify(data),
method: "POST"
Expand Down

0 comments on commit d1d938b

Please sign in to comment.