diff --git a/src/restfulchecker/RestChecker.java b/src/restfulchecker/RestChecker.java index afcb575..d57628d 100644 --- a/src/restfulchecker/RestChecker.java +++ b/src/restfulchecker/RestChecker.java @@ -104,7 +104,7 @@ ArrayList identically = new ArrayList<>(); for (int i = 0; i < results.size(); i++) { boolean isResponse = false; - if (responses.get(i) == HttpURLConnection.HTTP_OK) { + if (responses.get(i) / 100 == 2) { isResponse = results.get(i).equals(beforeResults.get(i)); } identically.add(isResponse);