node-xml2js causes “Can’t send headers…”

Ugh! Turns out if you don’t use a new Parser for each request you end up exiting with “Error: Can’t set headers after they are sent.”

Very annoying!

https://github.com/visionmedia/express/issues/711


Posted

in

by

Tags: