Skip to content

Commit

Permalink
add error code
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Feb 25, 2024
1 parent 614a8c1 commit 61661f1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/opendota/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public void handle(HttpExchange t) throws IOException {
}
if (error.toString().contains("bunzip2: (stdin) is not a bzip2 file.")) {
// Tried to unzip a non-bz2 file
status = 200;
}
t.sendResponseHeaders(status, 0);
t.getResponseBody().close();
Expand Down

0 comments on commit 61661f1

Please sign in to comment.