mocker-api
Advanced tools
Comparing version 1.7.8 to 1.7.9
{ | ||
"name": "mocker-api", | ||
"version": "1.7.8", | ||
"version": "1.7.9", | ||
"description": "This is dev support mock RESTful API.", | ||
@@ -5,0 +5,0 @@ "bin": { |
@@ -111,3 +111,3 @@ const bodyParser = require('body-parser'); | ||
*/ | ||
contentType = contentType.replace(/;.*$/, ''); | ||
contentType = contentType && contentType.replace(/;.*$/, ''); | ||
if(bodyParserConf && bodyParserConf[contentType]) { | ||
@@ -114,0 +114,0 @@ // 如果存在bodyParserConf配置 {'text/plain': 'text','text/html': 'text'} |
20605