Skip to content

Commit

Permalink
feat(objectionary#1622): use broader status code
Browse files Browse the repository at this point in the history
  • Loading branch information
volodya-lombrozo committed Dec 28, 2022
1 parent 08b8141 commit 4bfbdcd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public Input get(final String name) throws MalformedURLException {
public boolean contains(final String name) throws IOException {
final int code = ((HttpURLConnection) this.template.value(name).openConnection())
.getResponseCode();
return code >= HttpURLConnection.HTTP_OK && code < HttpURLConnection.HTTP_PARTIAL;
return code >= HttpURLConnection.HTTP_OK && code < 399;
}

/**
Expand Down

0 comments on commit 4bfbdcd

Please sign in to comment.