diff --git a/src/restfulchecker/RestChecker.java b/src/restfulchecker/RestChecker.java index 098fe85..63179bd 100644 --- a/src/restfulchecker/RestChecker.java +++ b/src/restfulchecker/RestChecker.java @@ -140,7 +140,7 @@ ArrayList identically = new ArrayList<>(); for (int i = 0; i < results.size(); i++) { boolean isResponse = false; - if (responses.get(i) / 100 == 2 || responses.get(i) == 404) { + if (responses.get(i) / 100 == 2 || (responses.get(i) == 404 && type == Method.DELETE)) { isResponse = results.get(i).equals(beforeResults.get(i)); } identically.add(isResponse);