Archived
0

check packet if return not json

This commit is contained in:
Mo
2015-09-26 16:50:35 +03:00
parent 829e3ac5f5
commit 37d96efa4f

View File

@@ -256,6 +256,10 @@ public class EDSession {
if (entity != null){ if (entity != null){
if ("application/json".equals(entity.getContentType().getValue())){ if ("application/json".equals(entity.getContentType().getValue())){
lastStatus = ED_SESSION_STATUS.OK; lastStatus = ED_SESSION_STATUS.OK;
} else {
if (lastStatus == ED_SESSION_STATUS.OK){
lastStatus = ED_SESSION_STATUS.ERROR;
}
} }
readContent(entity); readContent(entity);
} }