urlencoded与Node.Js中的表单数据

有没有什么快速的方法来确定在Node.JS中传递的数据是urlencoded还是form-data (multiparty)数据?

检查请求的Content-Type头部值: console.log(req.headers['content-type']);