Skip to content

More resiliant to malformed input

Compare
Choose a tag to compare
@macedigital macedigital released this 31 Aug 18:47

Highlights

Thanks to the help of @fiznool the middleware handles more cases of bad input data!

Changes:

  • Until Leonidas-from-XIV/node-xml2js#229 is merged upstream the xml-body-parser is operating in synchronous mode. This should have little to no impact on operations as long as the incoming data is relatively small in size, and/or the number of concurrent connections doesn't approach the levels of high volume sites. There will be a new minor release reverting behavior back to asynchronous mode, once the aforementioned PR has been merged and a new release has been made.

In return, the parser operates in way better shape to malformed input (aka. invalid) data.