refactor create test plan and recording

This commit is contained in:
hemeimei 2014-09-30 10:50:09 +08:00
parent 15ac6877a4
commit f30ed0f193
2 changed files with 3 additions and 3 deletions

View File

@ -216,7 +216,7 @@ public class TestPlanFactory {
for (ParameterModel parameterModel : behaviorModel.getParameters()) {
if (parameterModel.getKey().equals("expResCnttype") ) {
if (parameterModel.getValue().matches(filterTypeMatch)) {
if (parameterModel.getValue() != null && parameterModel.getValue().matches(filterTypeMatch)) {
return true;
} else {
return false;

View File

@ -207,7 +207,7 @@ public class RequestHandler implements Runnable {
sb.append(changeList2String(headerMap.get(key)) + "\r\n");
continue;
}
if(key.equals("Content-Length") && headerMap.get(key).get(0).equals("-1")){
if(key.equals("Content-Length")){
sb.append("Content-Length: "+responseModel.getResponse().length +"\r\n");
continue;
}