diff --git a/xmlBodyParser.coffee b/xmlBodyParser.coffee index 3af5ad8..95aedf9 100644 --- a/xmlBodyParser.coffee +++ b/xmlBodyParser.coffee @@ -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 @@ -31,4 +31,4 @@ xmlBodyParser = (req, res, next) -> req.body = json next() -exports.xmlBodyParser = xmlBodyParser \ No newline at end of file +exports.xmlBodyParser = xmlBodyParser