From 5e02df19563ee7984404448bbf3953cad3fedbff Mon Sep 17 00:00:00 2001 From: Jon Breen Date: Thu, 9 May 2024 17:13:57 +0100 Subject: [PATCH] Change header name --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index adcafc8..b6819be 100644 --- a/src/index.ts +++ b/src/index.ts @@ -291,8 +291,8 @@ app.post("/submit", auth0Middleware, async (c) => { console.log(`Using auth header '${authorisation.slice(0, 20)}..'`); const resp = await fetch(c.env.secureSubmitEndpoint, { headers: { - 'authorisation': authorisation, - "content-type": "application/json;charset=UTF-8", + 'Authorisation': authorisation, + "Content-type": "application/json;charset=UTF-8", }, body: data, method: "POST"