fix(Mock测试): 修复Mock测试没有校验空参数产生的报错问题
修复Mock测试没有校验空参数产生的报错问题
This commit is contained in:
parent
32c06ce462
commit
ca9fdcc355
|
@ -587,8 +587,12 @@ public class MockApiUtils {
|
|||
if (charEncoding == null) {
|
||||
charEncoding = "UTF-8";
|
||||
}
|
||||
if(buffer == null){
|
||||
return "";
|
||||
}else {
|
||||
return new String(buffer, charEncoding);
|
||||
}
|
||||
}
|
||||
|
||||
private static String readXml(HttpServletRequest request) {
|
||||
String inputLine = null;
|
||||
|
|
Loading…
Reference in New Issue