Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions xmlBodyParser.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ xmlBodyParser = (req, res, next) ->
return next() if "GET" is req.method or "HEAD" is req.method

# check Content-Type
return next() unless "application/xml" is utils.mime(req)
return next() unless "application/xml" is utils.mime(req) or "text/xml" is utils.mime(req)

# flag as parsed
req._body = true
Expand All @@ -31,4 +31,4 @@ xmlBodyParser = (req, res, next) ->
req.body = json
next()

exports.xmlBodyParser = xmlBodyParser
exports.xmlBodyParser = xmlBodyParser