unfuck-utf8-headers-middleware
v1.0.1
Published
Unfucks utf-8 doubleconversion for headers.
Downloads
7,404
Readme
Headers are converted from the standard iso-8859-1 / latin1 to UTF-8 by node.
Headers from shibboleth are already UTF-8.
https://issues.shibboleth.net/jira/projects/SSPCPP/issues/SSPCPP-2?filter=allopenissues
This express middleware reverts the conversion. Use it once before handling headers.
const headersMiddleware = require('unfuck-headers-middleware')
const headers = [
'uid',
'givenname',
'sn',
'mail'
]
app.use(headersMiddleware(headers))