diff --git a/index.js b/index.js index 36420f3..831af5a 100644 --- a/index.js +++ b/index.js @@ -98,7 +98,7 @@ async function main() { app.post('/:instanceId', async (req, res) => { - const apikey = req.headers['X-BatchHttp-Api-Key']; + const apikey = req.headers['x-batchhttp-api-key']; if (apikey !== API_KEY) { res.status(401).send({ error: "Invalid API Key"