You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module uses bodyparser.text() to parse body as text and passes options object to configure it.
As you can see here, bodyparser accepts options.type options as function, which allows user to control type matching precisely.
Unfortunately, in body-parser-xml there is a line where it check if passed options.type is not an array and convert it into array thus breaking default bodyparser.text()'s ability to use user's function, because that function checks if passed 'type' option is a function
The text was updated successfully, but these errors were encountered:
This module uses
bodyparser.text()
to parse body as text and passesoptions
object to configure it.As you can see here, bodyparser accepts
options.type
options as function, which allows user to control type matching precisely.Unfortunately, in body-parser-xml there is a line where it check if passed
options.type
is not an array and convert it into array thus breaking default bodyparser.text()'s ability to use user's function, because that function checks if passed 'type' option is a functionThe text was updated successfully, but these errors were encountered: