I have a service written in node.js express.js I get http request from another online service. This is header:
{
'content-type': 'application/x-www-form-urlencoded; charset=windows-1251',
host: 'swift-language.info:3030',
'content-length': '614',
connection: 'Keep-Alive'
}
body-parser response with 415 error and express doesn't call my route. I guess the problem is charset=windows-1251
You are right that body-parser currently does not support non-UTF8 charsets. However busboy (and other modules built upon it such as connect-busboy or express-busboy) supports many charsets in addition to those built-in to node.