Skip to content

Commit

Permalink
Fix the condition for isResourceChanged
Browse files Browse the repository at this point in the history
  • Loading branch information
szegedi authored and rbri committed Feb 19, 2023
1 parent a73af65 commit 7655918
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ boolean updateValidator(
private boolean isResourceChanged(URLConnection urlConnection) throws IOException {
if (urlConnection instanceof HttpURLConnection) {
return ((HttpURLConnection) urlConnection).getResponseCode()
== HttpURLConnection.HTTP_NOT_MODIFIED;
!= HttpURLConnection.HTTP_NOT_MODIFIED;
}
return lastModified != urlConnection.getLastModified();
}
Expand Down

0 comments on commit 7655918

Please sign in to comment.