INNER CODE UNIT · JavaScript

getCharset

expressjs/body-parser · lib/read.js:265

function getCharset (req) {
  const header = req.headers['content-type']
  if (!header) return undefined
  return contentType.parse(header).parameters.charset?.toLowerCase()
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…