Skip to content

Commit

Permalink
added null response if http statuscode is not 200
Browse files Browse the repository at this point in the history
  • Loading branch information
petchris committed Sep 1, 2020
1 parent 5763a81 commit 4804a07
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ public BitarchiveRecord getWarc( URI uri, long offset) throws IOException {
HttpResponse httpResponse = closableHttpClient.execute(request);
// System.out.println("httpResponse status: " + httpResponse.getStatusLine().toString());
log.debug("httpResponse status: " + httpResponse.getStatusLine().toString());
if (httpResponse.getStatusLine().getStatusCode() != 200) {
return null;
}

BitarchiveRecord reply = null;
try {
Expand Down

0 comments on commit 4804a07

Please sign in to comment.