check packet if return not json
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user