serverless-express icon indicating copy to clipboard operation
serverless-express copied to clipboard

content-type and other headers with number strings are being converted to numbers

Open iDVB opened this issue 3 years ago • 0 comments

@vendia/[email protected]

app.post('/webhook', async (req, res) => {
  const { event, context } = getCurrentInvoke()
  console.log(util.inspect({ event, req }, false, null))
}

// event.headers['content-type] = "420"
// req.headers['content-type] = 420

This is causing TS validation errors. Any idea if this is something I can disable in express?

iDVB avatar Nov 03 '21 00:11 iDVB